Results 1 to 5 of 5

Thread: How to disabled the BACK button

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2000
    Location
    Quebec
    Posts
    16

    Question

    Hi,

    I want to disabled the Back button from one page in particular (logoff page).

    I don't want to let the client come back to the site without a username or a password.

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    I had the same problem, i pretty sure you can't, i search
    a lot for it!

    solution:
    put your logoff in a new window and close your previous,
    that way their will be no turning back!!!


  3. #3
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    two things you could do here.

    Make the log in set a session variable.
    Make the log off the destoy the session object.

    have code at the top of each page checking for the Session variable and redirect to a login page if it isn't set.



    another option is to have a page which redirects to the logoff page

    so a link to log off loads another page which then loads the logoff page. That way a click on the Back button will reload the middle page and redirect back to the log off page.

    Have I explained this ok?
    Mark
    -------------------

  4. #4
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    That ^^^ is the solution. Don't ever disable the back button. Your users will HATE you for it.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  5. #5
    Hyperactive Member compuGEEK's Avatar
    Join Date
    May 1999
    Location
    Mpls,MN,USA
    Posts
    281
    Here is a helpful article about disabling the back button:

    http://www.4guysfromrolla.com/webtech/111500-1.shtml

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