Stenyj has asked for the wisdom of the Perl Monks concerning the following question:
my $sid = cookie('main') || undef; my @sessionInfo; my $session = new CGI::Session(undef, $sid, {Directory=>'c:/apache/ses +sions'}); if ( $session->is_new() ) { $session->delete(); } else { # get values from session }
&test; sub test { my $sid = cookie('main') || undef; my @sessionInfo; my $session = new CGI::Session(undef, $sid, {Directory=>'c:/apache +/sessions'}); if ( $session->is_new() ) { $session->delete(); } }
Line 58 is the next line after "&test;" where I call another subroutine (that works fine, and has absolutely nothing to do with sessions at all). If I edit out this line, the error simply skips to the next active line in the code... so it's obviously being generated by the &test subroutine."Content-Type: text/html; charset=ISO-8859-1 (in cleanup) could not fl +ush: Couldn't unlink C:\apache\sessions\cgisess_16a6fc56d547a55cb4ec0 +5c183c5c10b: No such file or directory at /apache/htdocs/test.cgi lin +e 58.<br>
20050408 Edit by ysth: use id:// instead of link with domain name
Edit by tye: put long error text in CODE tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Code works fine, but in subroutine does not... help plz!
by ikegami (Patriarch) on Apr 08, 2005 at 04:37 UTC | |
by ikegami (Patriarch) on Apr 08, 2005 at 05:18 UTC | |
by Stenyj (Beadle) on Apr 09, 2005 at 03:41 UTC | |
|
Re: Code works fine, but in subroutine does not... help plz!
by tlm (Prior) on Apr 08, 2005 at 04:37 UTC | |
|
Re: Code works fine, but in subroutine does not... help plz!
by Miguel (Friar) on Apr 08, 2005 at 07:08 UTC | |
by Cody Pendant (Prior) on Apr 08, 2005 at 08:00 UTC | |
by Stenyj (Beadle) on Apr 09, 2005 at 01:58 UTC | |
by Stenyj (Beadle) on Apr 09, 2005 at 02:05 UTC |