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...
ioS: How to pass Cookies to a remote request?
I need to set a cookie(Not using a browser control). Is it possible?
Cookies and Webviews
I am authenticating my users using httpclient, but after authentication, I need to preserve the session generated in the httpclient when I open a webview, is there anyway to force the cookie to the webview?
Dealing with cookies, Apache Realm Authentication
Hi guys! I'm in troubles with authentication. Titanium App (iOS, android) on client side, Apache realm on server side. Creating and httpClient object and sending the authentication values (Authorization requestHeader) Server response is next...
HTTPClient > What's the deal with Cookies? They appear to work automatically, but poor documentation.
This is the first "painful" problem I've had with Titanium in almost 6 weeks of intensive use. I would be seriously grateful for any help here as I'm having one (actually 2) of those never-ending days of stress. I've spent the past 2 days...
Passing passing cookie across with webView
I'm having trouble passing an authentication cookie across with a webview (note this problem is an Android problem only because with iOS the cookie is passed across automatically and I don't need to retrieve it at all). I retrieve the cookie at the time I...
Bad request occurred after about 1 day since login
I had developed an app that connect to a server, and get a session for identification. My problem is that, I log in the server, and everything works fine. Then I close the app and open it in the next day morning, suddenly the http request report me...
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...
How to login to ASP.NET site with cookies using HttpClient
Hi ppl I really hope you can help, because I cant seem to figure this out. Problem: I want to login to a ASP.NET site so I afterwards can get the data, and make it nice and neat in my app. But I can't seem to login, and the first problem seems that the...
Webview and Cookies on Android (is it possible?)
I'm stuck! Can someone (maybe someone at Appcelerator) tell me whether this actually possible with Android or if I am doing something wrong? And it it won't work, will it work any time soon? Basically I want to pass across a cookie when I open a webView...
Clearing cookies in webview on Android doesn't work
In our app, users are provided with a simple login choice via a webview containing a form. When the user logged in successfully the view is closed and the main app window starts up. Besides a default user/password ccombination users can also login via...
Delete all cookies in a WebView (Android)
Hi, I want to delete all cookies after load event. I try using this code: ~~~ var code = "(function () { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = cookies[i]; var eqPos = cookie.indexOf('=');...
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.
Trouble setting webview cookie with webview.evalJS function and beforeload event
I've been stuck on this problem for the last few days and can't seem to work out what the problem might be. I'm trying to set a cookie before loading a page in a webview on android. Code looks like this: ~~~ var container =...
Titanium.Network.createHTTPClient not sending cookies
Hi, My request goes through but does not send any cookies. Am I missing something? ~~~ var MyURL = "http://someurl.com/content.php" var MyRequest = Titanium.Network.createHTTPClient(); MyRequest.open('GET', MyURL); var requestCookies =...
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...
PlZZZ post very basic exp of xhr-cookies _i m waiting!!
i m trying to implement xhr-cookies last 10 hrs...Plz help me
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...
HTTPClient and session handle or cookie save in file?
Hi, Im wondered how are you doing session handle in HTTPClient requests? I mean, for example we need make 2 requests like: 1. Login to page, and store cookies 2. Get data from another page I tried find any idea how to do that, but nothing.. so maybe...
Deleting cookies or webview without cookies
I need to open a webview without caching cookies. Deleting cookies when the application starts/ends would be a good solution. I tried to follow (http://developer.appcelerator.com/question/129126/deleting-all-cookies-in-webview-using-titanium-api) but it...
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?
Httpclient cookies
Hello. I'm developing a mobile application for android that uses cookies when authenticating to server. How can I check if Ti.Network.HTTPClient requestheader cookies are already set?
Cookies problem
I have a problem when I try to get the cookies from the response header in the Titanium.Network.HTTPClient. I use the following code: `var xhr = Titanium.Network.createHTTPClient();` `var cookies = xhr.getResponseHeader("Set-Cookie");` and...
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...
Enabling cookies
How can I enable cookies inside Titanium's web view running on Android? Currently, I get the error - "Your browser cookie functionality is turned off. Please turn it on." Thanks.
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...
Authentication difference between iOS and Android?
I'm developing my first ever application in Titanium and have hit a bit of a hurdle. My application gets a number of data feeds from a back-end IBM Domino server. When my application launches the user logs in with a username and password, these are then...
Cookie sharing between default/native Browser and WebViews in an app
I have an app where I execute server-side scripts by using hidden WebViews and I saw that cookies are also set somewhere on my device by these server-side codes (as in any common browser). My question is: are cookies shared between the app (i.e. Webviews...
Set COOKIES using setRequestHeader() = CRASHED ?
Hello, I seem to get problems as soon as I have more than one cookie sending through setRequestHeader("Cookie","?????"); Here's my code ~~~ var cookieString = "cookie1=value1; cookie2=value2;"; xhr =...
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...
Remember Me / Session Implementation
I have a working user account creation and authentication system tested on Android. It uses HTTPClient POST requests against a PHP+MySQL server backend. How can I add "Remember Me" functionality, so that when a checkbox is ticked at the...
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...
GET HTML/XML PAGE - Session issue
Hello, I have a little issue with the following code : https://gist.github.com/710861 the answer of the server is an xml without the children <placemark> where is focused my info. try to click this link to see the tag...
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...
Connection response header and httpClient
In previous 0.8.x I would authenticate to an HTTP handler, then get list of reports, then execute the report. The 'connection' response header would always be set to "keep-alive", now in 1.0 it is set to "close" - wont this strip the...
Showing 1-42 of 42