cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davide <dagar...@aliceposta.it>
Subject Pipeline Caching
Date Tue, 27 Jan 2004 08:30:05 GMT
Hi, i've a question about caching; I've this pipeline:

<map:match pattern="admin">
	<map:act type="auth-protect">
		<map:parameter name="handler" value="navigation"/>
		<map:select type="parameter">
   		<map:parameter name="parameter-selector-test" 
value="{session-context:authentication/authentication/role}"/>
   			<map:when test="admin">
   				<map:generate src="content/adminareatemp.xml"/>
				<!--<map:parameter name="use-request-parameters" value="true"/>-->
				<!--<map:generate type="jsp" src="jsp/admin_main.jsp"/>-->
				<!--<map:transform src="style/admin_main_html.xsl"/>-->
				<map:serialize type="xml"/>
			</map:when>
  			<map:otherwise>
  				<map:generate src="content/usertemp.xml"/>
  				<map:serialize type="xml"/>
  			</map:otherwise>
		</map:select>
	</map:act>
</map:match>

This pipeline verify if the user role is admin(with the parameter 
selector), then if true enters in an admin area, else returns an  error 
message. It works, but often (maybe because browser caches the page) i get 
a wrong response: for example i'm admin and it returns error, or i'm normal 
user and it returns the admin page. By refreshing the page in the browser 
it returns ok. So i'd like to make this pipeline not cacheable so that 
every time the browser requests it and the control on the user role is 
performed. How to do??

Best Regards, Davide


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


Mime
View raw message