Switch to full style
Dynamic open source server-side web development
Post a reply

Session destroy on navigate away

Fri Jan 30, 2009 9:00 pm

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)?



Re: Session destroy on navigate away

Fri Jan 30, 2009 9:21 pm

Here an example :
finished-projects/login-using-session-with-php-and-mysql-t3228.html

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 ? :confused:

Post a reply
  Related Posts  to : Session destroy on navigate away
 session in jsp     -  
 PHP session variables     -  
 EJB session bean     -  
 Session Valid     -  
 php login with session     -  
 Delete session variable     -  
 Session handling using Struts     -  
 Login using session with php and mysql     -  
 tomcat session tracking     -  
 EJB 3.0 Stateful Session Bean Example     -