Stay signed into mobile web app.

How can I prevent my mobile web app from logging out every time it is closed?

  • Vinh
    • Flash Drive

    It is a mobile web app. It isn't on an app store. Basically an iPhone/iPad user ads my website to thier home screen, and it runs the website with the browser features stripped off of it, so it basically functions like an app. It even has a splash screen. It is called a mobile web app. My problem, as I stated earlier, is that every time they open it up, they are logged out of it and have to log back in. I would like to make it where they stay logged in forever. I'm assuming this would be done with cookies, but I have absolutely no idea how to go about it.

  • Jack Kitterhing
    • Code Norris

    Hi there @Vinh,

    Hope you're well today and thanks for your question. Sorry about the delay here.

    This wouldn't technically be possible, as when they close the site it's like closing your browser and now days most people have their browser set to auto clear cookies on browser close, which would delete that login cookie.

    It's also a massive security risk trying to force user logins to be logged in forever.

    Thanks!

    Kind Regards
    Jack.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.