Apache::ASP Powered by ModPerl & Apache Powered by Apache::ASP
Demo ASP: session_query_parse.asp 2024-11-06

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: 09a923d00e4db8f09ca69784f2a1bbaa
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