#15110 [Asn->Csd]: Sessions are not saved unless the session contains data

From: Date: Sat, 17 May 2003 18:58:53 +0000
Subject: #15110 [Asn->Csd]: Sessions are not saved unless the session contains data
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969353587@lists.php.net to get a copy of this message
ID: 15110 Updated by: john@php.net Reported By: fabian at ahrberg dot se -Status: Assigned +Status: Closed Bug Type: Documentation problem Operating System: Linux PHP Version: 4.1.1 Assigned To: john New Comment: This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-11-28 18:11:16] john@php.net I'm going to update the docs to reflect this behavior. ------------------------------------------------------------------------ [2002-08-23 08:03:44] mfischer@php.net Update summary ------------------------------------------------------------------------ [2002-02-08 07:06:25] yohgaki@php.net If you have your own save handler functions, you can do what ever you want with you functiions. For example, if session is new (no record in your DB when read is called), just insert it when close is called. ------------------------------------------------------------------------ [2002-02-08 05:48:50] fabian at ahrberg dot se I share a server with a couple of other sites using php and I'm the only one using mysql to store sessions. By storing all my sessions in a table, both empty and not, I get a measure of how many sessions my site has started. This gives me a rough idea of how many vistors I have at a specfic time, just by counting the rows in the table. Further on, I differ logged in users by counting those who have the a flag registered. This gives me fast and rough stats of how many users that are visisting the site and how many of them who are logged in. Now, when I get the empty sessions all mixed up with the other sites ut gets way too rough. I have thought of a couple of possible solutions with by always registering a variable to session but it makes it more ineffcient than before. I think you get the picture. Maybe you have a simple soloution, if so please share =). I've gotta go now. Have a nice weekend. ------------------------------------------------------------------------ [2002-02-08 02:19:03] derick@php.net What is the big problem here exactly? I fail to understand why this is important for you. Derick ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/15110 -- Edit this bug report at http://bugs.php.net/?id=15110&edit=1

« previous php.doc (#969353587) next »