At a later hour on 22/05/2000, [EMAIL PROTECTED] wrote:
>>At 09:03 22/05/2000 -0400, [EMAIL PROTECTED] wrote:
>>Am I correct in assuming that my tied session variable (using
>>Apache::Session::DBI), which I have stored away in a pnote,
>>is no longer tied when I try to retrieve it in a later
>>handler?
>
>I routinely stuff my %session tied hash into a pnote, and it works fine.
>All I do is something like $r->pnotes('session') = \%session;
Thank you, Robin.
That was exactly what I was doing.
My trouble must lie elsewhere.
It seems the Apache::Session::DBI isn't actually changing anything
in the database, since next time I tie the session the only thing
it has is the _session_id I tied it with in the first place.
#example:
tie %session, 'Apache::Session::DBI', $undef;
my $stored_id = $session{_session_id};
$session{username} = $form{username};
# According to debugging, , all values are now set.
# much later
tie %session, 'Apache::Session::DBI', $stored_id;
foreach my $key ( keys %session ) {
$r->log_error($key, " => ",$session{$key});
}
# THIS shows ONLY _session_id => (value of $stored_id)
Shrug.