LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-23-2012, 04:51 PM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
phonegap / android - xmlhttprequest going out with different cookies


Hi, guys!

I just nailed a problem that I don't know how to solve.

I started developing a Phonegap application using android 4. I hit a bug related to iframe parents so I switched back to 2.1.

In android 4, when I was going to make an xmlhttprequest, I had to set up the Cookies for connecting to a remote PHP application by hand..... but I just noticed that xmlhttprequests are going out with Cookies set in android 2.1.... the problem is that for two different pages in my application, cookies are being set differently and so I don't get the right $_SESSION information when doing a request..... So, I have two questions:

1 - Why is that?
2 - How can I trick the xmlhttprequest to use a custom cookie instead of the ones created "by default"?
 
Old 05-23-2012, 05:22 PM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
Totally crazy stuff. I had to remove the cache in order for the application to use the same cookie.
 
  


Reply

Tags
android, cookies, phonegap, xmlhttprequest


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] PhoneGap/Android - requestXML is null eantoranz Programming 3 05-02-2012 11:23 AM
PhoneGap/Android - WebUrlLoaderClient timeout eantoranz Programming 0 05-02-2012 11:18 AM
LXer: Setting Up An Android App Build Environment With Eclipse, Android SDK, PhoneGap (Debian Squeez LXer Syndicated Linux News 0 03-07-2011 11:50 PM
LXer: Android App Build Environment With Eclipse, Android SDK, PhoneGap (Fedora 14) LXer Syndicated Linux News 2 02-01-2011 12:11 PM
LXer: Setting Up An Android App Build Environment With Eclipse, Android SDK, PhoneGap (Ubuntu 10.10) LXer Syndicated Linux News 0 01-27-2011 12:30 PM


All times are GMT -5. The time now is 06:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration