Question subject: Session destroy on navigate away
Posted: Fri Jan 30, 2009 9:00 pm
Joined: Fri Jan 30, 2009 8:42 pm Posts: 3 Has thanked: 0 time Have thanks: 0 time
I'm new to php, but not to programming, and i'm using very basics of sessions to manage a user being logged into my site. When testing it, everything works until I move away from my site. I would like the session to be destroyed if you navigate away, is there an easy way of doing this without using javascript (i'm trying to make my site javascript-less for those who chose not to have scripts enabled)?
msi_333
Question subject: Re: Session destroy on navigate away
Posted: Fri Jan 30, 2009 9:21 pm
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2279 Location: Earth Has thanked: 39 time Have thanks: 61 time
you can use the session time out to detect the period if time which the user didn't interacted with the page . Javascript is used to detect when the user click close the browser window .
i have saw your posts on other forums with good answers ? are u spam ? looking for backlinks ?
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )