cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "neil" <nba...@aisoftware.com.au>
Subject RE: session-is-valid
Date Tue, 12 Aug 2003 23:13:38 GMT
If an action returns a non-null map
(which you'd expect your 1st action to do if the session is valid)
then the nested sitemap content is executed
(in your case there is none - just a comment).

The sitemap content after the action is executed in any case
(what you were wondering is correct).



-----Original Message-----
From: users-return-54147-nbacon=aisoftware.com.au@cocoon.apache.org
[mailto:users-return-54147-nbacon=aisoftware.com.au@cocoon.apache.org]On
Behalf Of Sonny Sukumar
Sent: Wednesday, 13 August 2003 8:54 AM
To: users@cocoon.apache.org
Subject: session-is-valid



I'm trying to intercept every request and see if a session exists for the 
user, creating and initializing a session if one doesn't already exist.  
Will this work?:

<map:match pattern="**">
  <map:act type="session-isvalid">
    <!-- Session exists for user, so do nothing. -->
  </map:act>

  <!-- No session exists for this user, so create one. -->
  <map:act type="create-session">
    <!-- Kill the session after 4 hours of complete inactivity. -->
    <map:parameter name="max-inactive-interval" value="14400"/>
  </map:act>
  <map:act type="initialize-session"/>
</map:match>

I'm wondering if Cocoon executes the 2nd and 3rd actions no matter whether a 
session exists or not.

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message