Quote:
Noneed for a seperate routine IMO - just use: my $data = $ses->data();
It's clear and concise.
Quote:
You shouldn't need to check the existance except when loading the session file, which is when you create a new session object anyway and so can check for errors. If you already have a session object then that means the session is valid, otherwise new() would have returned an error.The only solution is independent of the module: (-e "$session_path/$session_id")
That's what I currently use.
Quote:
Did you try this out?...it doesn't actually create a new redundant session file.Quote:
If you pass in id => $id then it loads the existing session file and updates the directory path at the same time.Quote:
Mmm no it's not a bug, if you are priting out the session object, then of course $DIRECTORY won't be shown because it's not part of the object, it's a global scalar.However I better worry about the fact that new session is created, when I want to check a non-existant session.
I use several non-GT modules, which may affect how this module works, and *may* cause the problem (e.g. CGI.pm).
Best regards,
Webmaster33
Paid Support from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...