How to clear Apple Safari Browser history - using Forms Authentication - Safari skips the login page and goes straight to the web page

Last post 03-26-2007 7:05 AM by John5. 2 replies.

Sort Posts:

  • How to clear Apple Safari Browser history - using Forms Authentication - Safari skips the login page and goes straight to the web page

    03-17-2007, 4:22 PM
    • Member
      65 point Member
    • John5
    • Member since 04-20-2006, 11:23 AM
    • Posts 37

    Hi

    I am using the Forms Authentication with .Net 2

    When using Firefox and Internet Explorer, I noticed that after logging in, then closing the browser, then going to a page again using browser history, it didn't ask to login again and it should

    This is because it uses the browser history

    So in the Page_load event, I have these lines of code to stop the pages been cached:

            // clear out the cache

            Response.ExpiresAbsolute =

    DateTime.Now.AddDays(-1d);

            Response.Expires = -1500;

            Response.CacheControl = "no-cache";

    This works for Internet Explorer and Firefox very well ie re-opening a web browser and using the browser history to go to a page, firsts takes you to the login form

    However, testing this on the Apple Mac with Safari web brower, it doesn't - it ignores the login, and goes straight to the page

    Can anyone advise on a fix for the Apple Mac Safari ie - a way to clear the browser history, and go to the login page first?

    Thanks in advance

     

  • Re: How to clear Apple Safari Browser history - using Forms Authentication - Safari skips the login page and goes straight to the web page

    03-25-2007, 7:59 AM
    • Member
      65 point Member
    • John5
    • Member since 04-20-2006, 11:23 AM
    • Posts 37
    any ideas are welcome
  • Re: How to clear Apple Safari Browser history - using Forms Authentication - Safari skips the login page and goes straight to the web page

    03-26-2007, 7:05 AM
    • Member
      65 point Member
    • John5
    • Member since 04-20-2006, 11:23 AM
    • Posts 37
    ...
Page 1 of 1 (3 items)