I am working on an application where by when user press
browser's back button even after logged out, can able to see secure
home page.
Can anyone help me to control this?
Thanks a lot in advance.
You need to setup the pages to not cache.
%26lt;cfheader name=''Expires'' value=''#Now()#''%26gt;
%26lt;cfheader name=''Pragma'' value=''no-cache''%26gt;
Then when a user clicks the back button, the browser will be
forced to re-request that page.To check the session state when browser...
I have used
%26lt;cfheader name=''Expires'' value=''#Now()#''%26gt;
%26lt;cfheader name=''Pragma'' value=''no-cache''%26gt;
on secure home page as the first line of code as per your
suggestions.
But still problem continues...
When I click on sign out, I go to public home page. When I
prese browser back button, again secure home page is displayed with
all the data. Again when I refresh the page, it goes to login
screen.
Please advice on this.
I use this variation successfully.
%26lt;cfheader name=''Cache-Control'' value=''no-cache''%26gt;
%26lt;cfheader name=''Pragma'' value=''no-cache''%26gt;
%26lt;cfheader name=''Expires'' value=''-1''%26gt;
I even tried this...and it doesn't work
Thanks for help.
No comments:
Post a Comment