Total members 10262 | Gratitudes |It is currently Thu May 24, 2012 5:35 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 2 posts ] 
Author Question
 Question subject: Session destroy on navigate away
PostPosted: Fri Jan 30, 2009 9:00 pm 
Offline
Newbie
User avatar

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


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: Session destroy on navigate away
PostPosted: Fri Jan 30, 2009 9:21 pm 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2279
Location: Earth
Has thanked: 39 time
Have thanks: 61 time
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:

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 2 posts ] 
Quick reply


  

 Similar topics
 how to write code message to user before session will expire
 i need code for identifying web user session
 EJB session bean
 PHP session variables problem in Firefox
 PHP session variables problem in Firefox
 php login with session
 Session handling using Struts
 session in jsp
 Login using session with php and mysql
 How can I enable session tracking for JSP pages if the brows

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 1 guest



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team