CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2005
    Location
    Waterloo ON
    Posts
    545

    remove cache of webpage

    I used Forms Authentication to control accessing webpage. However, when user logs out, user still can access the web page by clicking button "Back" on toolbar of IE.

    How can I redirect to login webpage?

    Thanks in advance.

  2. #2
    Join Date
    Dec 2005
    Location
    Waterloo ON
    Posts
    545

    Re: remove cache of webpage

    I got the answer.

    the following code snippet could added into Page_Init function of secured page:
    Code:
    Response.Cache.SetExpires(DateTime.Now)
    Response.Cache.SetCacheability(HttpCacheability.NoCache)
    .

  3. #3
    Join Date
    Dec 2005
    Location
    Waterloo ON
    Posts
    545

    Re: remove cache of webpage

    I have one more secured webpage. When I go back from second page to first page while user still logged on, it doesn't work. How can I fix it?

    thx in advance.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured