Community Questions & Answers

how to clear webview cookies and cache ?

In my app two windows in first window i put value and submit new window open contain webview like search value put in 1st window and result show in second window of webview , i store search value usinf SETSTRING function because when user open a app he...

Stay Logged In

Hello, I'm working on an iPhone app that logs into an existing website through the following code. I'm running into a problem though. Every time I log into the app and then exit it I have to log back in. I would like to set the app up so that once a user...

Webview iframe cookie issue

Hello, I have a weird issue. I have a local html-page, iframe.html, that shows a remote page. My problem is that the pages that is rendered within the iframe doesn't seem to be able to use cookies. The purpose of this app is to show a webapp and add some...

Cookies and Webviews

Does anyone have an example of some code that shows how to pass an authentication cookie across to the server when opening a webview? I've searched the forum but can only find (very similar) questions that remain unanswered. Thanks.

Cookie setup

Hello, I need to store the login information in cookies and need to retrieve that when user opens the application again.. how can i do this

XHR POST request with redirect issue

I'm currently "porting" my project for iPhone from PhoneGap to Titanium (2.0.1) because I want to use some native UI features. So far I'd just created new project, added my HTML from PhoneGap project, created WebView and loaded local HTML into...

Cookies and Webviews again

How do I make a cookie obtained via an httpclient request get used in a subsequent webview? A previous 'answer' merely stated that the respondent had found a way to enter the cookies into a webview.db by reading the older support forums. These are no...

How to access all HTTP Response Headers?

I have a simple mobile app in Titanium that I'm using to debug the ability to log into our user system. At the moment, I cannot seem to see the `Set-Cookie` response header as it's always returned as `null`. I'm currently using Titanium SDK 1.7.5 (1.8 is...

Keeping cookies persistent in a webview

I am using a webview to do certain actions for the user. The user logs-in using a form in webview to a 3rd party. However, the session gets killed if the app is relaunched. I am trying to make the cookies persist across sessions. I have tried storing...

Storing values

Is there a way to store your values so the next time you use the api you don't have to put in the values? Can I use cookies or something else?

Cookies for AJAX Requests -- How do they work?

I have an application that I am attempting to develop for Titanium Desktop to run on Mac and PC. While the main "guts" of the application are currently stored locally (so under the app:// system), the application makes heavy use of AJAX API calls...

Sending a cookie with base64 encoding

There seems to be a bug in HTTPClient (in mobilesdk) that doesn't allow the setting of a Cookie with base64 encoding (or any value with = signs in it, due to splitting on = in TiNetworkHTTPClientProxy.m and then checking that there are only two parts). It...

How can i use cookies in webView iOS

hello everyone, i created an app that basically reads a site locally from the device. the site uses cookies to pass data from 1 page to another and i saw that it didn't get cookies. can anyone tell me how can i work this out ? anyway to pass data from...

Setting cookies with PHP

I'm trying to set and read cookies with PHP, but with absolutely no luck. Any help would be greatly appreciated. `setcookie("testcookie", "this is the cookie", time()+60*60*24*3) or die("Didn't set cookie");` `echo...

Load a WebView with given cookies?

Dear community, In my application, I am using Titanium.Network.HTTPClient to perform login to a website and I get cookies from that connection. I'd like to then load a private page in a WebView using these cookies. How can I load WebView with a given...

Cannot get cookie

Greetings, I'm trying to get the PHPSESSID cookie, but it keeps returning null. I'm certain the page login.php gives out a cookie as I've seen the cookie in my web browser/Firebug. Here is the cookie from Firebug:...

Delete / Disable WebView Cookies?

Anyone know of anyway to clear the cookies for a WebView, or disable them altogether? Trying to create a stateless login pop-up using a WebView and the fact that it's storing login credential cookies is breaking everything. I believe there's a database...

Showing 1-42 of 42