On Fri, Feb 22, 2002 at 01:15:46PM +0100, Hans de Groot wrote:
> Hi,
> 
> I was wondering how udat and sessions are managed..  Right now it
> serves me right. I use udat to check logins. and as long as I keep
> my all my iexplore windows open I stay logged in.  When I close all
> windows and go back to the site I have to login again. It seems a
> new session ist started.  In this case it works perfect.  But I
> would like to use $udat to store things like the last page visited
> and maybe the search words they used. (or frameset/frameless mode)
> and this does not work coz it apaears the session is reset after a
> close (or restart) of the browser.
> 
> Any suggestions how to do this? is it possible at all? or do I
> really need to use normal cookies (set the manually), I prefer to
> use $udat if possible.

It sounds like you've got a very short expiry time on your cookie from
within Embperl. The three variables that govern the cookie settings
are:

EMBPERL_COOKIE_DOMAIN
EMBPERL_COOKIE_PATH
EMBPERL_COOKIE_EXPIRES

Try setting these to something like:

EMBPERL_COOKIE_DOMAIN  .mydomain.blah
EMBPERL_COOKIE_PATH    / 
EMBPERL_COOKIE_EXPIRES +7d
(for a 7 day expiry)

Make sure that the cookies aren't being deleted and are definitely
being saved to disk on browser shutdown.

If you can be sure that both the cookie exists in your browser when
you return to the site and that same cookie value exists in your
sessions database at the same time then data in %udat should be
persistent. That's what sessions are for, after all :)

-- 
 Andrew O'Brien                                                               
 Senior Engineer                         email: [EMAIL PROTECTED]
 Switch Online Group Pty Limited         phone: +61 2 9299 1133             
 ABN 89 092 286 327                      fax:   +61 2 9299 1134             

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

Reply via email to