There is a simple answer, but so far I have not been able to find a link to it in the official Apple documentation.
The trick is this:
// Start or resume session session_start(); // Extend cookie life time by an amount of your liking $cookieLifetime = 365 * 24 * 60 * 60; // A year in seconds setcookie(session_name(),session_id(),time()+$cookieLifetime);
If you extend the lifetime of your session cookie like this, Safari will stick to the session cookie and even allow session sharing between the βhome screen of the installedβ version of your web application and regular visits via safari.
For a more detailed discussion, take a look at my answer to this question:
Maintain PHP session in web application on iPhone
source share