Re: [Cgi-session-user] Session not saving data files (a final answer?)
Brought to you by:
sherzodr
From: Mark S. <ma...@su...> - 2005-09-08 01:23:43
|
On Wed, Sep 07, 2005 at 05:49:22PM -0400, K.G. Woltz wrote: > Mark, > Yes it was working before the UNIX server was rebuilt. > The files were written to the dir specified. > I don't know when, during or after, it doesn't matter to the script. > The files need to be there for the next call to the CGI. I checked on this with the following test. This is the same as t/flush.t in the distribution, except I've commented out the braces to make it identical to your case. use File::Spec; use Test::More qw/no_plan/; use strict; use CGI::Session; my $dir = File::Spec->catdir('t', 'sessiondata'); my $id; #{ my $ses = CGI::Session->new(undef,undef,{Directory=> $dir }); $id = $ses->id(); ok($id, "found session id"); #} ok(-r "$dir/cgisess_".$id, "found session data file"); It fails with 3.95 and 4.02 with Perl 5.8.6. Thus, I suspect it was your Perl upgrade or another factor that caused the change in behavior. If you want, try downgrading CGI::Session to 3.95 and see if that works for you. ( Based on my test above, it shouldn't ). Mark -- http://mark.stosberg.com/ |