...

View Full Version : can not kill session



zodehala
02-18-2008, 08:17 PM
my php.ini settings


; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 5


; Document expires after n minutes.
session.cache_expire = 1

in spite of this my session does not die after even 2 minutes (in İE & Firefox)

session_read.php


session_start();
if ($_SESSION["name"]==''){
echo 'no session';
}else {
echo session_id()."<br/>" ;
echo $_SESSION["host"]."<br/>" ;
echo $_SESSION["name"] ."<br/>" ;
echo $_SESSION["zaman"]."<br/>" ;
echo $_SESSION['count']++;
}


session_write.php


session_start();
$_SESSION["host"] = $_SERVER['REMOTE_ADDR'];
$_SESSION["name"] = "programmingtalk";
$_SESSION["zaman"] = date(' H:i:s d-m-Y');
$_SESSION['count'] = 0;


why does not my session die automatically ?

mlse
02-18-2008, 11:04 PM
Just a thought here ... which version of PHP using and which OS is running on your server?

zodehala
02-18-2008, 11:14 PM
Microsoft Windows XP [version 5.1.2600] + SP2

* Apache HTTPD 2.2.8 + Openssl 0.9.8g
* MySQL 5.0.51
* PHP 5.2.5
* phpMyAdmin 2.11.4
* FileZilla FTP Server 0.9.25
* Mercury Mail Transport System 4.52

Ultragames
02-19-2008, 01:39 AM
That session will only die after that length of time inactive. You probably know this, but just in case, if you are loading any pages that start the session during that time, the timer starts over.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum