hesco has asked for the wisdom of the Perl Monks concerning the following question:
However, every attempt to access this application with ?_SESSION_ID=some_session_id in my argument list, seems to result in the creation of a new session object, a new cgisess_some_new_session_id file being created in my /tmp directory.if(!defined($self->{'q'}->param("_SESSION_ID"))){ $self->{'s'} = CGI::Session->new(undef, $self->{'q'}, { Directory => $self->{'cfg'}->param("paths.sessions") } ) +; } else { $self->{'s'} = CGI::Session->new( $self->{'q'}->param("_SESSION_ID +") ); }
I would appreciate any clues about what it is I am mising here about how this CGI::Session module is supposed to work
-- Hugh
UPDATE:
This works:
if(!defined($self->{'q'}->param("_SESSION_ID"))){ $self->{'s'} = CGI::Session->new(undef, $self->{'q'}, { Directory => $self->{'cfg'}->param("paths.sessions") } ) +; } else { - $self->{'s'} = CGI::Session->new( $self->{'q'}->param("_SESSION_I +D") ); + $self->{'s'} = CGI::Session->new(undef, + $self->{'q'}->param("_SESSION_ID"), + { Directory => $self->{'cfg'}->param("paths.sessions") } +); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI::Session fails to find existing sessions
by moritz (Cardinal) on Aug 17, 2009 at 16:13 UTC | |
by hesco (Deacon) on Aug 17, 2009 at 16:40 UTC | |
|
Re: CGI::Session fails to find existing sessions
by Anonymous Monk on Aug 17, 2009 at 17:38 UTC |