On Wed, 31 Jan 2007 02:45:18 +0200, Ury Marshak urym@two-bytes.com wrote:
I'm currently making a simple AJAX framework for hunchentoot, and I have the following question: in the presence of sessions what is the sanctioned way to determine if the session parameter needs to be added to the request url and what is its value when it does?
There's no "official" way, but you can look at the code for MAYBE-REWRITE-URLS-FOR-SESSION. It does the following:
1. Check if *REWRITE-FOR-SESSION-URLS* has a true value.
http://weitz.de/hunchentoot/#*rewrite-for-session-urls*
2. Check if the browser has sent a cookie with the name *SESSION-COOKIE-NAME*.
http://weitz.de/hunchentoot/#*session-cookie-name*
3. Use the value (TBNL::SESSION-COOKIE-VALUE)
HTH, Edi.