Need help! how to disable

Results 1 to 3 of 3

Thread: Need help! how to disable

  1. #1
    Autumn Guest

    Default Need help! how to disable

    I am developing an intranet application in IE5 using ASP and Javascript. there is a "logoff" button on every page and it brings the user to the logon page. but the user can still use "back" button to enter the application. Is there a way to prevent the user from entering other pages without logging on first? <BR>this is kinda urgent... Thanks a million!

  2. #2
    SPG Guest

    Default RE: Need help! how to disable

    Well surely you&#039ve got some session-esqe variable you give them to signify logon-edness, right? Just cancel it on logout and, at the top of every page, put an If statement testing for the logon value. If it fails, don&#039t serve the page.<BR><BR>Note that this won&#039t protect against them using the back button (they&#039re probably just seeing their browser&#039s cache), but it will protect against them loading new pages and posting new data.

  3. #3
    Join Date
    Dec 1969

    Default RE: Need help! how to disable

    set a session variable (maybe their memberid) when they login, and set the variable to null when they logoff.<BR><BR>Add a check within each page you don&#039t want them to be able to access. Check for valid data in the session variable you set when they logged on, if it isn&#039t valid redirect them back to the login screen.

Posting Permissions

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