logging out from the session

Posted by Prince5 under ASP.NET on 2/14/2009 | Views : 1660 | Status : [Member] | Replies : 1
once the user is login in he should be able to use the back button for moving forward and back ward. in the Internet exploer. once the user logout. from this session. then when he press the back buton . it should not show him the pages

. ex: like an online banking, r in gmail. once logout from the page.
when he press back button should not take him to the back pages

since the browser is storing the cache pages . i need to clear the pages from the cache once the user logout from this session

how to do it?

thank you


Posted by: Syedshakeer on: 2/15/2009 [Member] Starter

use teh below code
if (Session["UserID"] == null)
Response.Buffer = true;
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d);
Response.Expires = -1500;
Response.CacheControl = "no-cache";

Syed Shakeer Hussain

Prince5, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response