You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by RobertCZ <ro...@robert.cz> on 2004/12/02 11:01:13 UTC
How to start a new session without removing old one?
Hi,
I need to give user a new session but I don't want to delete old data
for archival purposes - so don't want $r->DeleteSession - what's the
right way? User don't need to remember old session, so I can just make a
new session and resnd a new cookie, but what is the standard way?
And one more slightly unrelated question - when user log in using a
password I want to give him his old session - how?
- Robert
PS Yes, I tried RTFM, but there were quite a few session related
changes in 1.3 and I'm confused what working/standard/back-compatibility
etc.
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: How to start a new session without removing old one?
Posted by Gerald Richter <ri...@ecos.de>.
>
> I need to give user a new session but I don't want to
> delete old data for archival purposes - so don't want
> $r->DeleteSession - what's the right way? User don't need to
> remember old session, so I can just make a new session and
> resnd a new cookie, but what is the standard way?
>
You should be able to start a new session by setting a new session id in
$udat{_session_id}
> And one more slightly unrelated question - when user log in
> using a password I want to give him his old session - how?
>
Set $udat{_session_id} to his session id
Gerald
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org