Hi,
I just started to use/learn php session and cookies. Everything looks fine,
I took a quick look at the php session man pages but there's two little
things that I can't figure out completely.
1- A simple page to see what happens behind the scene:
<?
session_start() ;
$_SESSION['TEST'] = "This is a test";
phpinfo();
?>
Session config looks like this:
session.cache_e xpire = 30
session.cookie_ lifetime = 1800
session.gc_maxl ifetime = 1440
phpinfo() show the following HTTP Response Headers :
Set-Cookie: PHPSESSID=sgkdd lmuepiksd48pq1t mj38s0; expires=Sat, 21-May-2005
10:38:41 GMT; path=/
[Which is ok ... cookie will expire in 30 minutes (1800 seconds)]
EXPIRES: Thu, 19 Nov 1981 08:52:00 GMT
This is the one I don't understand, what is it, where does this value come
from? And it's always the same exact date/time. ?!?
2- The session files in D:\TEMP are not removed. I thought that those files
would be removed after some time (maybe I'm just not patient enough).
If anyone could tell more about this or point me to documentation relevant
to one of these questions I would appreciate.
Thanks
Dae
I just started to use/learn php session and cookies. Everything looks fine,
I took a quick look at the php session man pages but there's two little
things that I can't figure out completely.
1- A simple page to see what happens behind the scene:
<?
session_start() ;
$_SESSION['TEST'] = "This is a test";
phpinfo();
?>
Session config looks like this:
session.cache_e xpire = 30
session.cookie_ lifetime = 1800
session.gc_maxl ifetime = 1440
phpinfo() show the following HTTP Response Headers :
Set-Cookie: PHPSESSID=sgkdd lmuepiksd48pq1t mj38s0; expires=Sat, 21-May-2005
10:38:41 GMT; path=/
[Which is ok ... cookie will expire in 30 minutes (1800 seconds)]
EXPIRES: Thu, 19 Nov 1981 08:52:00 GMT
This is the one I don't understand, what is it, where does this value come
from? And it's always the same exact date/time. ?!?
2- The session files in D:\TEMP are not removed. I thought that those files
would be removed after some time (maybe I'm just not patient enough).
If anyone could tell more about this or point me to documentation relevant
to one of these questions I would appreciate.
Thanks
Dae
Comment