Im on a website, I close all windows and I go back again, and of course Im logged in.
What I need is for website to do otherwise. When I go back not to be logged in – to create a new session on every visit shortly and to hold it all the time (no timeout).
Is there a logical explanation on what things I should watch out when I do this since I managed to do it on local apache, but it doesnt work online?
And thanks 🙂
When you make the cookie, set the expire date in the past. It should allow you to remain logged in for the session, but once you close the browser, the browser will clear the cookie jar of stale cookies and your session along with it.