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 <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>
> Now playing: Five Magics
> (Megadeth - "Rust In Peace")
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to