Jump to content
xisto Community
Sign in to follow this  
kvarnerexpress

Session Lifespan

Recommended Posts

Hey all,I am having trouble keeping session variables. If a visitor comes to our website, has a session variable set, then leaves our website and comes back, without closing their browser, should they lose their session variables? This is what's happening to me, and I was under the impression that session variables lasted until the expiration/inactivity timeout, or until the browser was closed. Am I wrong?

Share this post


Link to post
Share on other sites

Yes. If the user closes the browser, he loses his session variables. Session variables are always tied down to a browser session. By the way, what is the trouble you are facing? It is not very clear from your description.

Share this post


Link to post
Share on other sites

Session variables are supposed to exist as long as the browser window is open.However, since the browser which is a client side application is coming into picture, it MIGHT depend on the browser you are using and how it treats session variables.Did you try this with diffrent browsers ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.