Re: [Cgi-session-user] re: calling flush automatically
Brought to you by:
sherzodr
From: David S. <dav...@we...> - 2005-08-15 15:08:22
|
Thanks Mark, I'll give that a try.. The examples I've read included the braces. Regards, David ----- Original Message ----- From: "Mark Stosberg" <ma...@su...> To: "Session mailing list" <Cgi...@li...> Sent: Friday, August 12, 2005 11:58 PM Subject: [Cgi-session-user] re: calling flush automatically I looked more into the issue of why flush wasn't being called automatically by the recent poster, and also compared the behavior of 3.x and 4.x and this regard. Here's the test script I played with: #### 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"); #### With both 3.x and 4.x, both the tests will pass, meaning the session is being flushed automatically. Remove the brackets to provide the scope, and the second text fails (for both versions). Mark -- http://mark.stosberg.com/ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Cgi-session-user mailing list Cgi...@li... https://lists.sourceforge.net/lists/listinfo/cgi-session-user |