Apache::ASP Powered by ModPerl & Apache Powered by Apache::ASP
Demo ASP: session_query_parse.asp 2024-12-01

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 ^http://localhost ... 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 itself, now have the session id carried by the query strings.

The current session id is: 01fd3588472b4c14241e05bd48375821
The current count is: 11

Here are some other links that may or may not have the session id parsed in depending whether they match SessionQueryParseMatch:

view this file's source