On Tue, 16 Jan 2001, Edmund Mergl wrote:

> Todd Finney wrote:
> >
> > I'm using Apache::Session::Postgres to track sessions via
> > cookies.  When I access a page, the cookie is correctly
> > sent by the server, and accepted by the client.  However,
> > on the second request, I'm getting a 'Object does not exist
> > in data store' error.
> >
> > It looks like the session is not being stored in the
> > database, although I can't figure out why.  When running
> > postmaster -d 2, I get the following output:
> >
>
>
> This problem has been reported several times.
> find below the explanation of Francis J. Lacoste
> from Sun, 17 Oct 1999.
>
> Edmund
>
>
>
> This is because the DBIStore insert the encoded session data as
> binary data. PostgreSQL doesn't like that. You have to modify
> Apache::Session::DBIStore (or better implement a PGStore)
> to uuencode the session data. You can use for that MIME::Base64
> or better yet
>
> pack( "u*" ) and unpack ( "u*" ).

That's not true anymore.  Apache::Session 1.5+ have UUE and MIME modules
for talking to Pg and other binary-averse backing stores.  UUE is
automatically selected when Pg is in use.

-jwb

Reply via email to