On Sep 14, 6:23 am, Grant Cox <[EMAIL PROTECTED]> wrote:
> The issue with lost sessions often comes down to the SessionComponent
> being quite strict, and destroying the session if the user agent
> changes. Of course, the user agent shouldn't really change, but with
> Ajax calls and whatnot it can happen.
>
> To test, comment out the lines
>
> if (function_exists('ini_set')) {
> ini_set('session.referer_check',
> $this->host);
> }
>
> and
>
> if ($this->_userAgent ==
> $this->read("Config.userAgent") && $this-
>
> >time <= $this->read("Config.time")) {
>
> from your /cake/libs/session.php . Unfortunately I don't know of a
> way to change this without hacking the core (or making a whole new
> Session component).
I don't know if the above applies to the OPs problem but that check is
only in place with security set to high in core.php, so one way to
avoid it is to set security to medium.
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---