> >Recreate_id creates a _new_ id if the given one does not exists
> Can you explain the following piece of code then:
>
> if (!$self->{data}->{_session_id} || $self ->
> {'args'}{'recreate_id'})
>
> It is taken from Session.pm (what I`m learning from).
>
> Why you use OR (||) here? This should by AND (&&), look:
>
> When session_id si NOT set AND recreate_id is set...
>
You come to this point only when loading an existing session hadn't
succueed. So when recreate_id is set when generate a new session with an new
id or when we create an new session when we don't have a session id. If
create_unknown is set and the load of the session has faild, session_id is
set to undef, so it will also create a new session.
So OR is correct here.
Gerald
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]