LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 03:51 PM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
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, 04:22 PM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
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



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 10:23 AM
PhoneGap/Android - WebUrlLoaderClient timeout eantoranz Programming 0 05-02-2012 10: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 10:50 PM
LXer: Android App Build Environment With Eclipse, Android SDK, PhoneGap (Fedora 14) LXer Syndicated Linux News 2 02-01-2011 11:11 AM
LXer: Setting Up An Android App Build Environment With Eclipse, Android SDK, PhoneGap (Ubuntu 10.10) LXer Syndicated Linux News 0 01-27-2011 11:30 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:00 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration