Total members 11895 |It is currently Sun Dec 22, 2024 12:37 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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




Author:
Newbie
User avatar Posts: 3
Have thanks: 0 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:

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 2 posts ] 

  Related Posts  to : Session destroy on navigate away
 session in jsp     -  
 Session Valid     -  
 php login with session     -  
 PHP session variables     -  
 EJB session bean     -  
 EJB 3.0 Stateful Session Bean Example     -  
 session Encoding Data in php     -  
 Modify Session Variables     -  
 Delete session variable     -  
 Session handling using Struts     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com