Re: Postgresql session handling
| From: | Richard Lynch | Date: | Tue, 20 Feb 2001 23:05:54 +0000 |
| Subject: | Re: Postgresql session handling | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40846@lists.php.net to get a copy of this message | ||
The writing of the session data occurs *after* the server-browser HTTP
connection is cut.
If you have any error-reporting happening in your session_write function,
you won't see it.
Alter that function to log errors to a file or something.
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Bolt Thrower <news@teiresias.net>
Newsgroups: php.general
Sent: Tuesday, February 20, 2001 12:45 PM
Subject: [PHP] Postgresql session handling
> 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")
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>