A Variation on sessions and MySQL

From: Date: Fri, 21 Jan 2000 19:00:31 +0000
Subject: A Variation on sessions and MySQL
Groups: php.version4 php.version4 
Request: Send a blank email to php-version4+get-9343@lists.php.net to get a copy of this message
Hi All, I had a quick look at Kenneths code, then a quick look at the Sashas sessions source ( damn, dont you love all thoses seses :-} ) and came up with the attached variation on the theme. I'm not sure if the garbage collection is working but it should.... Gee sessions are still a little quirky :-} Good work thou Sasha. -- Regards, Alan van den Bosch Sanguis Pty Ltd /* All generalizations are false. */

<?php include "session.inc"; session_register("count"); $count++; if ($count >= 10)session_destroy(); ?> Counting <?php echo $count; ?> <p> <a href="index.php">click here</a> Attachment: [text/x-java] session.inc
# phpMyAdmin MySQL-Dump # http://www.htmlwizard.net/phpMyAdmin/ # # Host: localhost Database : sessions # -------------------------------------------------------- # # Table structure for table 'session' # CREATE TABLE session ( sid varchar(32) DEFAULT '#' NOT NULL, sData text NOT NULL, mtime timestamp(14), PRIMARY KEY (sid) );
« previous php.version4 (#9343) next »