<%@ LANGUAGE = PerlScript%> Active Server Pages - Perl Version
ActiveState PerlScript


Active Server Session Object


<% # get the value associated with 'MyVar' $varReturn = $Session->{'MyVar'}; # let the user know what the value of the variable is $Response->write("The value of the session variable MyVar is $varReturn"); %>
<% $url = $Request->ServerVariables('PATH_INFO')->item; $_ = $Request->ServerVariables('PATH_TRANSLATED')->item; s/[\/\\](\w*\.asp\Z)//m; $params = 'filename='."$1".'&URL='."$url"; $params =~ s#([^a-zA-Z0-9&_.:%/-\\]{1})#uc '%' . unpack('H2', $1)#eg; %> Return

view the source