HTTP state management without cookies?

Gustavo Cordova gcordova at hebmex.com
Wed Feb 20 11:07:30 EST 2002


> Perhaps you could use some mod_rewrite magic to transform:
> 
> http://foo.bar/_SID_=2374820394/myscript.cgi/
> 
> into:
> 
> http://foo.bar/myscript.cgi?_SID_=2374820394
> 
> so the same trick will work for CGI?
> 
> - Geoff
> 

This will hit the QUERY_STRING parameter.

Another less used parameter is PATH_INFO, the rewrite could
be into something like this:

http://foo.bar/_SID_=2374820394/myscript.cgi/

into something like:

http://foo.bar/myscript.cgi/2374820394

Apache takes the "/2374820394" and puts it into PATH_INFO,
where you can take it from.

And that leaves you with QUERY_STRING untouched.

-gus




More information about the Python-list mailing list