Welcome to iPadForums.net Guest - Click Here to Register

Safari app run from the Home Screen loses session cookies

This is a discussion on Safari app run from the Home Screen loses session cookies within the iPad Hacking forums, part of the Apple iPad Discussions category; Hi all, I am having a strange problem while trying to deploy a Safariweb app on the iPad 2. My application contains a few tabs ...

iPadForums.net is the original Apple iPad Forum! Registered Users do not see these ads. Please Register - It's Free!
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    iPF Noob
    Member #
    189472
    Join Date
    Apr 2012
    Location
    Los Angeles
    Posts
    1

    Safari app run from the Home Screen loses session cookies

    Hi all,

    I am having a strange problem while trying to deploy a Safariweb app on the iPad 2. My application contains a few tabs which load different pages; so far, nothing unusual. I would like to be able to let the users add a link to the app to the Home Screen and run it in chromeless mode. The problem is that the auth session (a cookie) is not persisted between page loads. But this only happens if I start the app from the icon that I saved on the Home Screen. Run directly in Safari the app works without problems.

    I found a workaround which is to load the home page of the web app with a # at the end of the URL (domain_name/#). Saving the link after this makes the app work perfectly.

    Did anyone see something similar? Any tips greatly appreciated.

    Thanks,
    Marius

  2. Ads


  3. #2
    iPF Noob
    Member #
    193585
    Join Date
    Apr 2012
    Location
    France
    Posts
    1
    Quote Originally Posted by marius.constantin View Post
    Hi all,

    I am having a strange problem while trying to deploy a Safariweb app on the iPad 2. My application contains a few tabs which load different pages; so far, nothing unusual. I would like to be able to let the users add a link to the app to the Home Screen and run it in chromeless mode. The problem is that the auth session (a cookie) is not persisted between page loads. But this only happens if I start the app from the icon that I saved on the Home Screen. Run directly in Safari the app works without problems.

    I found a workaround which is to load the home page of the web app with a # at the end of the URL (domain_name/#). Saving the link after this makes the app work perfectly.

    Did anyone see something similar? Any tips greatly appreciated.

    Thanks,
    Marius
    I have the same pb for a web app that I'm developing. I'm thinking about using local storage instead of cookie.
    Better idea welcome

    ::Guillaume::


Home | Forum | Active Topics | What's New

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. Replies: 0
    Last Post: 11-06-2011, 03:55 PM
  2. Replies: 8
    Last Post: 10-12-2011, 05:23 PM
  3. Return to home screen whe surfing safari
    By Fxgt in forum iPad Help
    Replies: 4
    Last Post: 10-09-2011, 10:33 AM
  4. Multitasking, Webclip Home Screen, Safari
    By ainden in forum iPad Help
    Replies: 2
    Last Post: 02-25-2011, 11:07 PM
  5. Multitasking, Webclip Home Screen, Safari
    By ainden in forum iPad OS
    Replies: 1
    Last Post: 02-25-2011, 03:53 PM

Search tags for this page

clear session ipda2
,
ipad 2 loses cookies
,

ipad cookie problem

,
ipad safari home screen link cache problem
,

ipad safari windows authentication

,

rails ipad safari session

,

safari iphone home screen cookie

,

session cookies ipad

Click on a term to search for related topics.

Tags for this Thread