views:

58

answers:

1

Right now I am developing a Webbased Application, where the User has to login first.

When I open the Page by iPhone Safari, login and restart Safari, I am still loggedin (Cookie & Session ID still set)

But when I add this Page with "Add to Home Screen", each Time i click the Icon for that page, I have to login again.

I did not found any informations about that. What can I do so my users can set this page to their homescreen as icon and still dont have to login each time the open it?

+1  A: 

There are persistent key-value storage and database storage available for web apps. You can save your authentication data using localStorage object and use XMLHttpRequest to send it to the server. Another option is saving your persistent data in a SQLite database, however this doesn’t seem to be a proper solution in your case. Check out Apple’s Client-Side Storage and Offline Applications Programming Guide for details/examples.

kervich
:) quiet complicated just to get the same result as safari browser. Do you have any simple example. Just to save the actual COOKIES, so when i restart the user for example dont have to login again.
christian Muller