[Chameleon] KeepSessionAlive widget disfunctional? -
solved
Bart van den Eijnden
BEN at Syncera-ITSolutions.NL
Tue Aug 2 07:46:58 EDT 2005
Okay, apparently the maximum value for the timeout is 1800 seconds ... so it did not accept my value :-(
I think the timeout name for the attribute is a bit misleading, it is actually an interval, since every X seconds the image is reloaded to keep the session alive. At first I thought it was the period of time in seconds after which my session would timeout ....
Another problem was that I copied the CWC2 tags from the Chameleon samples, sample_other.html, but since the widgets are nested there they are not loaded probably. If I look at the source of the sample other, I don't see a window.settimeout javascript cal which should be generated by the KeepSessionAlive widgetl.
The proper defintion should be:
<!-- SESSIONEXPIRED -->
<cwc2 type="SessionExpired" text="Your session has expired."></cwc2>
<!-- KEEPSESSIONALIVE -->
<cwc2 type="KeepSessionAlive" timeout="300"/>
instead of:
<!-- SESSIONEXPIRED -->
<cwc2 type="SessionExpired" text="Your session has expired.">
<!-- KEEPSESSIONALIVE -->
<cwc2 type="KeepSessionAlive" timeout="300"/>
</cwc2>
Best regards,
Bart
Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG DELFT
tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl
>>> "Bart van den Eijnden" <BEN at syncera-itsolutions.nl> 08/02/05 12:22pm >>>
Hi list,
using Chameleon 2.2, my sessions expire depending on the session.gc_maxlifetime from php.ini and not on the value set in the Chameleon template.
Is something wrong with my defintion, or is this functionality broken???
<cwc2 type="SessionExpired" text="Your session has expired please refresh the page">
<cwc2 type="KeepSessionAlive" timeout="18000"/>
</cwc2>
Best regards,
Bart
Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG DELFT
tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl
_______________________________________________
Chameleon mailing list
Chameleon at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/chameleon
More information about the Chameleon
mailing list