>
> I have an authentication system that uses the Apache::Session::MySQL
> backend with cookies to handle authentication.
>
> Sequence I use is:
>
> 1) Get username and password
> 2) If ok, generate a sessionkey and set
> $udat{'sessionkey'}=gen_sessionkey($username)
>
> However, every now and then Embperl will suddenly turn up with an old
> value for $udat{'sessionkey'}.
>

There are two things that I could image. Either for whatever reason your
sessions never goes into the database, in this case %udat will behave like a
normal hash and it works as long as you hit the same child. (You will hit
the same child as long as your KeepAliveTimeout isn't over, default 15sec).
The other possibility is you don't have set the cookiepath, but your page
resides in other directory, which is not under the directory which the
cookie send.

Gerald

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



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

Reply via email to