You are here: Session+cookies expiration « All PHP « IT news, forums, messages
Session+cookies expiration

Posted by Daedalus.OS on 05/21/05 13:46

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_expire = 30
session.cookie_lifetime = 1800
session.gc_maxlifetime = 1440

phpinfo() show the following HTTP Response Headers :
Set-Cookie: PHPSESSID=sgkddlmuepiksd48pq1tmj38s0; 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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация