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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org