You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Roger Kunkel <ro...@ceres.ca.gov> on 2002/06/28 22:04:40 UTC
new sessions start at random times
Hello Gerald, and thank you for providing such a great service to the
web community!
I have this session problem where everything seems to be working fine
and I'm making good use of the %udat hash. Suddenly a new session cookie
shows up and my session info is unavailable. This happens while using IE
6 AND while using Mozilla 1.0.
I've tracked the session id's and can see that my last session file
still exists in my sessions directory. I can't see any pattern to this
behavior - it seems to occur after about 10 requests or so.
My environment is:
Embperl 1.3.4
apache_1.3.26
mod_perl_1.27
Solaris 2.7
and my conf stuff for Embperl looks like this:
SetEnv EMBPERL_ESCMODE 0
PerlSetEnv EMBPERL_SESSION_CLASSES "File Semaphore"
PerlSetEnv EMBPERL_SESSION_ARGS "Directory=/cgil/httpd/sessions"
PerlModule Apache::Session
PerlModule Apache::DebugDBI
PerlModule HTML::Embperl
PerlModule URI::Escape
PerlModule Apache::DebugDBI
...
<Files *.epl>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
</files>
--
Roger Kunkel
Programmer/Analyst
The California Spatial Information Library (CaSIL)
http://gis.ca.gov/
roger@gis.ca.gov
(916) 653-8614
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: new sessions start at random times
Posted by Gerald Richter <ri...@ecos.de>.
Hi,
> I have this session problem where everything seems to be working fine
> and I'm making good use of the %udat hash. Suddenly a new session cookie
> shows up and my session info is unavailable. This happens while using IE
> 6 AND while using Mozilla 1.0.
>
> I've tracked the session id's and can see that my last session file
> still exists in my sessions directory. I can't see any pattern to this
> behavior - it seems to occur after about 10 requests or so.
>
Did you also see that the session id is comming in again? Set dbgSession in
EMBPERL_DEBUG and you can watch the session id's in the embperl.log file.
I guess the file where this happens is in a different directory, which is
not underneath the one where the cookie is first send. In this case the
browser will not send the cookie with the id back to EMbperl. To avoid this
problem, simply set EMBPERL_COOKIE_PATH to /
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org