Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Paul] GT::Session::File problems

Quote Reply
Re: [Paul] GT::Session::File problems In reply to
Quote:
Noneed for a seperate routine IMO - just use:
my $data = $ses->data();
It's clear and concise.
Ok. That's your opinion.

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.
When as you say "you create a new session object anyway", unfortunately a new session file is created anyway, even if you just want session checking. I found no solution to avoid creating new session file, when you create new session object.
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.
Yes of course I tried out, otherwise I wouldn't post that thread.

Quote:
If you pass in id => $id then it loads the existing session file and updates the directory path at the same time.
But if session file doesn't exist, will create a new session file.

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.
Doesn't really matter how we name it. Anyway, it would help finding problems, when I do debugging using Dumper. I would logically await the actual value of $DIRECTORY as 'directory' key value.

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...
Subject Author Views Date
Thread GT::Session::File problems webmaster33 4259 May 8, 2003, 9:15 AM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4126 May 8, 2003, 12:11 PM
Thread Re: [Paul] GT::Session::File problems
webmaster33 4129 May 8, 2003, 1:27 PM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4188 May 8, 2003, 1:54 PM
Thread Re: [Paul] GT::Session::File problems
webmaster33 4120 May 8, 2003, 2:49 PM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4113 May 8, 2003, 2:52 PM
Thread Re: [Paul] GT::Session::File problems
webmaster33 4180 May 8, 2003, 2:56 PM
Post Re: [webmaster33] GT::Session::File problems
Paul 4166 May 8, 2003, 3:17 PM
Post Re: [webmaster33] GT::Session::File problems
webmaster33 4128 May 8, 2003, 3:11 PM
Post Re: [webmaster33] GT::Session::File problems
webmaster33 4141 May 8, 2003, 3:20 PM
Post Post deleted by webmaster33
webmaster33 4121 May 9, 2003, 11:13 AM
Thread Re: [webmaster33] GT::Session::File problems
webmaster33 4098 May 18, 2003, 9:35 AM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4122 May 18, 2003, 10:24 AM
Thread Re: [Paul] GT::Session::File problems
webmaster33 4126 May 18, 2003, 11:18 AM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4057 May 18, 2003, 11:37 AM
Post Re: [Paul] GT::Session::File problems
webmaster33 4097 May 18, 2003, 11:45 AM