At 09:49 AM 27-01-04, you wrote:
<map:pipeline caching="off">

Davide wrote:

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

it still doesn't work...




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to