> -Original Message-
> From: Ovid [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 25, 2002 3:34 PM
> To: Niko Gunadi; Beginners cgi
> Subject: Re: Fwd: passing variables in POST
>
>
> I was under the
> impression that Apache::Session required Apache. I'
--- Niko Gunadi <[EMAIL PROTECTED]> wrote:
> >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?
>
> you actually can use CGI::Session
>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?
you actually can use CGI::Session, the front end of Apache::Session.
By using this mod
> 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
--- [EMAIL PROTECTED] wrote:
> what about a sesion id based on their IP? or soem relevent info like that?
Here's how I create session IDs:
my $md5= new Digest::MD5;
my $remote = $ENV{ REMOTE_ADDR } . $ENV{ REMOTE_PORT } . $self->{ _rand };
my $id = $md5->md5_base64( time, $$, $remo
--- Begin Message ---
what about a sesion id based on their IP? or soem relevent info like that?
may be a stupid way to do it.. but i track the "count" of how many users are
currently at my site by their IP/timestamp that is saved for 5 min. if
someone accesses the web site 5+ min after a t