Hi,
Hope you can help me.
I check last threads on the ML, but didn't find the answer.
I am developping a website for iphone and user have to
be logged in to use it.
I tryed, to speed up things, to store login and password
for the site in a cookie, and, it's barely working.
"barely" cause it's just not working with an iPhone...
it's working with all desktop browser (Safari, Firefox...)
and the iPhone Emulator from the SDK.
But when i reboot an iPhone after setting up the cookie,
the cookie disappear...
If you already meet this kind of issues (Or if you have any
idea, that can avoid), i will be glad to your solution. :)
Is their a limit of MaxAge ? or another important parameter
for iPhone's cookie ?
For information,
i'm using servlet and Tomcat 6, and their is the code
for setting up the cookie :
------------------------------------------------------------------------
static int aYear = 60*60*24*365;
Cookie loginCookie = new Cookie("information", data);
loginCookie.setMaxAge(aYear);
res.addCookie(loginCookie);
res.sendRedirect("index.jsp");
------------------------------------------------------------------------
Thank you all,
--
Sylvain,
PS : is the iPhone a cookies eater ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---