[Chameleon] KeepSessionAlive widget disfunctional? - solved

Bart van den Eijnden BEN at Syncera-ITSolutions.NL
Tue Aug 2 08:00:59 EDT 2005


Hi Paul,

I would call the attribute interval or refreshinterval .... the documentation should contain that this value should be smaller than session.gc_maxlifetime in php.ini.

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

>>> Paul Spencer <pspencer at dmsolutions.ca> 08/02/05 01:57pm >>>
Opps.  That was probably me ...

Bill,

please check all the sample templates for this problem.

I agree that the attribute name is misleading.  Do you have a suggestion?

Paul

Bart van den Eijnden wrote:
> 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 
> 
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org 
> http://lists.maptools.org/mailman/listinfo/chameleon 
> 

-- 
+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/| 
+-----------------------------------------------------------------+




More information about the Chameleon mailing list