|
From: Chris W. <ch...@cw...> - 2002-04-12 13:08:27
|
On Fri, 2002-04-12 at 08:34, Jure Simsic wrote:
> Here'tis:
>
> +++++
> OpenInteract::Session::save (113) >> Saving new session
> $VAR1 = {
> ...
Ok, this looks great.
> OpenInteract::Cookies::Apache::bake (36) >> Setting session to value
> 1f1371e8e525455823c78843bb724d70
> (eval) (273) >> Cookies out: session = 1f1371e8e525455823c78843bb724d70
And so does this. But...
> +++++
>
> But when I follow another link, I get again:
>
> +++++
> (eval) (255) >> Trying to use session class: OpenInteract::Session::DBI
> OpenInteract::Session::DBI::_create_session (26) >> Trying to fetch
> session 1f1371e8e525455823c78843bb724d70
> OpenInteract::Session::parse (32) >> Retrieved session properly: $VAR1 = {
> '_session_id' => '1f1371e8e525455823c78843bb724d70'
> };
This is the problem. For some reason the session isn't coming back
properly.
Let's try to isolate this. What happens when you do something like the
following. (This is off the top of my head, so you may need to debug.)
---
use strict;
use Apache::Session::Postgres;
use Data::Dumper qw( Dumper );
use OpenInteract::Startup;
my $WEBSITE_DIR = '/set/this/to/path/to/site';
my $SESSION_ID = '1f1371e8e525455823c78843bb724d70';
{
my $R = OpenInteract::Startup->setup_static_environment(
$WEBSITE_DIR );
my ( %session );
tie %session, 'Apache::Session::Postgres',
$SESSION_ID, { Handle => $R->db };
print Dumper( \%session );
}
---
Later,
Chris
--
Chris Winters (ch...@cw...)
Building enterprise-capable snack solutions since 1988.
|