Re: Sessions and IIS 5

From: Date: Mon, 25 Dec 2000 22:41:13 +0000
Subject: Re: Sessions and IIS 5
Groups: php.windows 
Request: Send a blank email to php-windows+get-4658@lists.php.net to get a copy of this message
>after updating to php 4.04 on win2k with IIS5, I am still encountering >problems with session-files. I can delete such a session-file by >session_destroy(). But shouldn't it be deleted automatically when the >browser is closed ? It remains there in the session folder. Or did I get >something completely wrong ? PHP uses the session file in order to preserve state across multiple accesses from the same browser. If it deleted the file when the browser closed, it would not have the data available for the next page access from that browser. When you want a session to finish you can get the user to do some kind of logout procedure which can call session_destroy, otherwise you can leave the files for garbage collection later. Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org

« previous php.windows (#4658) next »