>From our experience, cookies work just fine (so long as they're set properly) whether the app is launched from the home screen or from Safari.
There's a recent thread about iPhone web app cookie support here: http://groups.google.com/group/iphonewebdev/browse_thread/thread/8b8ac108f6b 0523e/e7e3e1163b33d9e8 > I was expecting them to basically be launched in a full screen > version of Safari, but maybe this isn't the case? Yes, this is basically the case. -- peter rust -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Simon Sent: Tuesday, June 22, 2010 9:07 AM To: iPhoneWebDev Subject: Re: web clip sessions? Sorry, I should have been more specific. What I meant in Safari was session state through cookies. Do web apps launched through an icon on the home screen also store cookie information? What type of context do these run in? I was expecting them to basically be launched in a full screen version of Safari, but maybe this isn't the case? Thanks again, Simon On Jun 21, 12:35 pm, "Peter Rust" <[email protected]> wrote: > Simon, > > I think that all iPhone apps (native and web) are responsible to save their > own state when they close and bring the app back up to the right place when > they load. I'm surprised that Safari saves your state -- perhaps it can do > that because there is a limit to the number of pages/tabs that are saved at > a time? Or perhaps it just gives the illusion of saving the state (a > screenshot and anchored URL?)... > > -- peter rust > > -----Original Message----- > From: [email protected] [mailto:[email protected]] > > On Behalf Of Simon > Sent: Monday, June 21, 2010 11:02 AM > To: iPhoneWebDev > Subject: web clip sessions? > > Hi, > > I'm working on a web app with offline functionality, and have things > working pretty well in mobile safari. I am now working on getting it > going as a web clip. I have a custom icon and get it added to the > home screen, and if I'm online and click the icon it loads up and > shows the login screen. If I log in, everything works fine. However, > if I switch to another application, and then click on the icon again, > the session information appears to get lost/cleared, as I am > redirected to the login page again. Doing a similar sequence of > events using mobile safari yields the desired results, where the > session is maintained, and I remain logged in. Is there any way to > have a web clip behave in the same manner, so that I won't get > redirected to the login screen every time I click on the icon? > > Interestingly, if I open the web clip, then turn off my wireless > connection, and open the web clip again, it behaves properly, allowing > me to continue to use the app in offline mode. Once I reconnect to > the wireless connection and go back to the app through the web clip, I > get redirected to the login screen. > > Any help would be appreciated. > > Thanks, > > Simon > > -- > 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 athttp://groups.google.com/group/iphonewebdev?hl=en. -- 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. -- 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.
