perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "D. L. Fox" <>
Subject Session->Abandon question
Date Tue, 02 Sep 2003 02:40:49 GMT
Can $Session->Abandon be called from an include file, even if
$Response->TrapInclude is used?  Does the user have to navigate (or be
redirected) to another page for it to "take effect"?

Although I have been using Apache-ASP for some time, I am new to using the
Session object.  I started playing with it at home on my win98SE machine.
I'm using Apache 1.3.27, Perl 5.6.1 built for MSWin32-x86-multi-thread
(ActiveState), mod_perl is listed as 1.28 on the site,
although it shows 1.27_01-dev when viewing the output of %ENV.

I'm not sure the specific version of Apache::ASP being used but all the
above, including Apache-ASP, came bundled with the mod_perl 1.28 Windows
binary currently being distributed at the site.

The problem I ran into was when using $Session->Abandon from inside an
include file.  The data I stored in the Session did not disappear.  However,
when I "hit" a regular ASP page calling $Session->Abandon, it works like a

I did a "workaround", although I don't know if it's a Good Thing to do, or
the Right Thing to do.

foreach my $skey(keys(%{$Session})) {
    $Session->{$skey} = undef;

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message