Haroldo
Haroldo

Reputation: 37377

What's more persistent, LocalStorage or PHP Sessions?

Which is most likely to still hold this value 100 days later, long-expiry sessions or localstorage?

Upvotes: 2

Views: 298

Answers (1)

deceze
deceze

Reputation: 521995

You have complete control over how long a session is alive on your server.
You have no control whatsoever over anything that goes on on the client. That includes LocalStorage and the session cookie needed for the session. Either way, it entirely depends on the client, there's no prediction you can make here either way.

Upvotes: 6

Related Questions