[Chameleon] Problem with destroying session
Julien-Samuel Lacroix
jlacroix at mapgears.com
Thu Sep 14 03:15:49 EDT 2006
Hi,
The session are erased in the _gc() function, not in the _destroy
function. This is a garbage collector. Every once in a while (based on the
setting in your php.ini session.gc_probability and session.gc_divisor),
this function is called and all the expired session are deleted.
The destroy function is not really use, but you activate it by setting
$GLOBALS['bLockSession'] = true;
in your phtml file.
Julien
> Hi
> I've added login and logout pages to my Chameleon application using
> Chameleon's session handling. On logout I call session_destroy which calls
> a
> _destroy() function in htdocs/common/session/session.php but it doesn't
> seem
> to do anything. I'm running Chameleon on Linux.
>
> There's a block of code in that function which looks like it actually
> deletes
> some session files but it's commented out for some reason. Can anyone
> explain to me how Chameleons session destruction works?
>
> Thanks in advance.
> Yahya
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>
More information about the Chameleon
mailing list