#!/usr/bin/perl /usr/bin/asp-perl
<%
my $form = $Request->Form();
# process form here
if($form->{increment}) {
$Session->{Count}++;
} elsif($form->{timeout}) {
$Session->Timeout(.25);
} elsif($form->{abandon}) {
$Session->Abandon();
}
my @rows = (
'$Session->{Count}',
'$Session->{Timeout}',
'$Session->{SessionID}'
);
%>
This file demonstrates the use of the $Session object, as well
as one implementantion of cookieless sessions involving the
use of the SessionQuery setting, and the
To demo the cookieless sessions, just turn off your cookies and use this form.
| Session Object Demonstration | |
| <%=$Server->HTMLEncode($_)%> | <%=eval($_) || $@%> |
The value for $Session->{Count} gets reset to 10 on every session start in the global.asa file.