>   my $md5    = new Digest::MD5;
>   my $remote = $ENV{ REMOTE_ADDR } . $ENV{ REMOTE_PORT } . $self->{
_rand };
>   my $id     = $md5->md5_base64( time, $$, $remote );
>   $id        =~ tr|+/=|-_.|; # Make non-word characters URL-friendly
>
> The "Make ... URL-friendly" part is in case I need to embed the session ID
in a URL.
>
> As for the "_rand" on the end, that's a random number that I tack onto the
end to ensure unique
> ids are generated.
>
thanks very much Ovid, it was very nice of you, but can you complete your
favour and describe how to implement Apache::Session, i mean, whats the use
of that module if i could generate a session id with md5?



btw, whats the %self is?

--
Hytham Shehab


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to