no-cache

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • exoskeleton
    New Member
    • Sep 2006
    • 104

    #1

    no-cache

    hi dear expert..i have a problem in my log in page..how can i prevent a user to go back to log-in screen after he log-in correctly...

    i already try the no-cache property or function and stl the IE back button can go back to that screen.. is there any solutions for that!
  • mainul
    New Member
    • Sep 2006
    • 51

    #2
    Hey you can use session in this case

    Comment

    • exoskeleton
      New Member
      • Sep 2006
      • 104

      #3
      yes i've used session ... but i dont know how to make it not visible in the back button of the IE...after logging in...then i click back button it display "Expired Page cannot be displayed" but when i click back again, there it will go to log in page again

      Originally posted by mainul
      Hey you can use session in this case

      Comment

      • mainul
        New Member
        • Sep 2006
        • 51

        #4
        Hello exoskeleton,
        i am not sure about the php code to disable the IE Back button. but you can try javascript to disable the back button.

        <head>
        <script>
        history.forward ();
        </script>
        </head>

        Comment

        • bevort
          New Member
          • Jul 2006
          • 53

          #5
          If you want to disable the back button in the browser you have to erase the history data previous to your page or open in a new browser window (will work sometimes)
          Or advance to your next page after login in with the location.replac e() method from javascript

          Or just forget it. The user will punish himself by login in again anf again and again .......

          Comment

          • exoskeleton
            New Member
            • Sep 2006
            • 104

            #6
            Thank you guys... how about the php code:
            header('cache-contol: no-cache')

            are you familiar with it?

            Comment

            • exoskeleton
              New Member
              • Sep 2006
              • 104

              #7
              Its great...that's a tricky one...tnx pal

              Originally posted by mainul
              Hello exoskeleton,
              i am not sure about the php code to disable the IE Back button. but you can try javascript to disable the back button.

              <head>
              <script>
              history.forward ();
              </script>
              </head>

              Comment

              Working...