Postgresql session handling
| From: | Bolt Thrower | Date: | Tue, 20 Feb 2001 18:45:25 +0000 |
| Subject: | Postgresql session handling | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-40786@lists.php.net to get a copy of this message | ||
PHP 4.04pl1, PostgresQL 7.0.3 on a RedHat 6.2 system.
I'm trying to get session data to be stored in a
postgres table. I'm using the pgsql session handler from
http://www.csh.rit.edu/~jon/projects/php/pgsql_session_handler/,
and I
think I've got it set up correctly, but I thought I'd ask here first.
With the following test script
+-----------------------------------------------------------------
| <? include("pgsql_session_handler.inc"); ?>
| <?
| session_start();
| session_register("count");
| $HTTP_SESSION_VARS[count]++;
| ?>
| <html>
| <head>
| <title>Test page</title>
| </head>
| <body>
| Hello! You've been here <?= $HTTP_SESSION_VARS[count]; ?> times!<br>
|
| <? print "To continue, <A HREF=\"test-session.php\">click
here</a>"; ?>
|
| </body>
| </html>
+-----------------------------------------------------------------
I can see php querying the database for session data (in the postgres
logs), but never writing session data to the database. Thus, the
counter is always '1'.
Any ideas where I'm going wrong? Why wouldn't session data get
written to the database?
Thanks,
--
Steve <news@teiresias.net>
Now playing: Five Magics
(Megadeth - "Rust In Peace")