From: Issa Mbodji <[EMAIL PROTECTED]>
> I am using Apache::Session::Mysl and I was able to generate a session
> id. What I want to know now is how to append that sess_id to the url
> as soon as it is created and as soon as the user loads the page. For
> example, the session is created when I go to the following url:
> http://localhost/cgi-bin/myrequest.pl But at this point it is not
> appended to the url yet. I am trying to make it seeable when I go to
> the page:
> http://localhost/cgi-bin/myrequest.pl?sess_id=000aaaa2114452221149988a
> c01

You may consider moving the session id to the beginning of the path 
instead of keeping it in the query. If you have the ID in the query 
you have to take good care that you do not lose it. All links in the 
HTML you create must contain it. All static HTML pages must be 
scanned and all URLs changed ...

It realy is a big hastle and it will decrease your server's 
performance.

IMHO it's more efficient to use URLs like this:

http://localhost/sess_id=000aaaa2114452221149988ac01/cgi-
bin/myrequest.pl

That way if you use relative links you do not have to care about the 
session ID.

See http://jenda.krynicky.cz/C/SessionID.txt. The document describes 
a IIS filter, but the idea is valid for Apache as well and should not 
be hard to implement.

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to