You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andreas Kerpe <An...@Kerpe.de> on 2011/05/01 18:54:06 UTC
SOLVED Re: back button when logged out
Hi,
> This could look something like that (independent of caching - so you
> don't need to set headers):
>
> Layout.java (or a BasePage.java):
> Object onActionFromLogout()
> {
> loginService.logout();
> return Logout.class;
> }
the login-logout itself is running fine.
> Where do you add this two lines? This should work if you add the headers
> before content is sent. I just tried that with the quickstart archetype
> - I added the following lines to the Layout.java and it works:
> @Inject
> private Response response;
>
> @BeginRender
> public void addHeaders()
> {
> response.setHeader("Cache-Control", "no-cache");
> response.setHeader("Pragma","no-cache");
> }
That was the solution, i actually placed it in the wrong place, now its
working fine!
Thanks a lot.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org