Apache::ASP Powered by ModPerl & Apache Powered by Apache::ASP
Demo ASP: session_query_parse.asp 2014-10-21

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: 04af82eccf7e4a86e454de61de08a169
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