#!/usr/bin/perl /usr/bin/asp-perl <% $Response->{Expires} = -100; %> Here we are going to demo another cookieless session implementation. Unlike the one at session.asp, you as the developer do NOT need to tag specific URLs with $Server->URL().
Instead what happens is that Apache::ASP will automatically parse through the script output looking for all local URLs, and those URLs matching the SessionQueryParseMatch config, currently set to <%=$Server->Config('SessionQueryParseMatch')%> ... These URLs will then have the current $Session->SessionID inserted into their query strings.
So turn off the cookies and see what happens! You should notice that all local URLs, including the link to {file} %>>itself, now have the session id carried by the query strings.
| The current session id is: | <%=$Session->SessionID%> |
| The current count is: | <%=++$Session->{Count}%> |
Here are some other links that may or may not have the session id parsed in depending whether they match SessionQueryParseMatch: