On 23 Mar 2002, at 13:57, Matthew Smith wrote:

> When I put a attribute key into the session, it dissapears into the 
> ether.  I can read the session ID and validate that it's the same one I 
> had last time.  I use
> <xsp:expr><session:set-attribute name="fred" value="dingbat"/></xsp:expr>  
> and then
> <xsp:expr><session:get-attribute name="fred" value="dingbat"/></xsp:expr>  
> 
> The only time it works is if I put them right next to each other so I 
> write it and then read it straight away, otherwise I never see it again.
> 
> It get's a bit stranger - if I restart apache and stop it again but keep 
> the browser going, it might sometimes then remember the attribute later 
> but only if I set it on the very first page access to the server once it 
> was restarted.  Also the 'new session id every access' problem comes 
> back sometimes if I restart apache.
> 

We had the exact same issues. We are using 
Apache::AxKit::Plugins::Session and that is where the problem 
was. If you are using Apache::AxKit::Plugins::Session, this is a diff 
of our patch:

14c14
<     %session = ();
---
>     my %session = ();
48c48
<             my $res = tieHash( $cookie, \%flex_options );
---
>             my $res = tieHash( $cookie, \%flex_options, \%session);
54c54
<             my $res = tieHash( undef, \%flex_options );
---
>             my $res = tieHash( undef, \%flex_options, \%session);
80c80
<     my ( $id, $options ) = @_;
---
>     my ( $id, $options, $session ) = @_;
83c83
<         tie %session, 'Apache::Session::Flex', $id, $options;
---
>         tie %$session, 'Apache::Session::Flex', $id, $options;


Daemmon


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to