Best way to clear all fields when the back button is used to go to a login page?

Discussion in 'Site & Server Administration' started by marty, May 10, 2006.

  1. #1
    Hey All,

    When I use the back button to return to my login page I'd like the user name and user password fields to be cleared. What are some good ways to do this?

    Thanks,

    Marty
     
    marty, May 10, 2006 IP
  2. DrQuincy

    DrQuincy Peon

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    With PHP I'd send a no-cache header.

    I may be wrong but maybe a meta tag would do it:

    <META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 12:00:00 GMT">
     
    DrQuincy, May 10, 2006 IP
    marty likes this.
  3. marty

    marty Peon

    Messages:
    154
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you very much.
     
    marty, May 10, 2006 IP