List Info

Thread: Browser cache and Facelets




Browser cache and Facelets
user name
2006-05-30 13:10:39
Hi all,

I'm implementing a login session thing.
I have a log in page and a servlet filter to check the
authentication.
That part works fine. Now I am concerning about the back
button of the 
browser. Eg. when user logged out, user shouldn't be able
to see the 
page that needs authentication using the back button.
I tried to use the meta tag--

<meta http-equiv="Pragma"
content="no-cache" />
<meta http-equiv="Cache-Control"
content="no-store" />

I use this solution with pure JSF project and it works fine.
I am not 
able to use the back button to view the pages.
Now that I have changed to use Facelets, this solution does
not work for 
me anymore.
I put this meta tag in my template.xhtml. Other than using
the Facelets 
template, I didn't do anything different than my pure JSF
project. Could 
anybody tell me why it does not work? Is there any
Facelets-specific 
solution?


Pim







------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribefacelets.dev.java.net
For additional commands, e-mail: users-helpfacelets.dev.java.net

Browser cache and Facelets
user name
2006-05-30 13:58:22
There is no logic within Facelets for caching the output or
alternating 
cache response headers.

Pimjai Wesnarat wrote:
> Hi all,
>
> I'm implementing a login session thing.
> I have a log in page and a servlet filter to check the
authentication.
> That part works fine. Now I am concerning about the
back button of the 
> browser. Eg. when user logged out, user shouldn't be
able to see the 
> page that needs authentication using the back button.
> I tried to use the meta tag--
>
> <meta http-equiv="Pragma"
content="no-cache" />
> <meta http-equiv="Cache-Control"
content="no-store" />
>
> I use this solution with pure JSF project and it works
fine. I am not 
> able to use the back button to view the pages.
> Now that I have changed to use Facelets, this solution
does not work 
> for me anymore.
> I put this meta tag in my template.xhtml. Other than
using the 
> Facelets template, I didn't do anything different than
my pure JSF 
> project. Could anybody tell me why it does not work? Is
there any 
> Facelets-specific solution?
>
>
> Pim
>
>
>
>
>
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: users-unsubscribefacelets.dev.java.net
> For additional commands, e-mail: users-helpfacelets.dev.java.net
>
>


-- 
--------------------------
Sent from my FrankenBerry Wireless Handheld

------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribefacelets.dev.java.net
For additional commands, e-mail: users-helpfacelets.dev.java.net

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )