Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Help how to disable the Back Button in the browser

by Mission (Hermit)
on Jun 25, 2001 at 18:03 UTC ( [id://91280]=note: print w/replies, xml ) Need Help??


in reply to Help how to disable the Back Button in the browser

TMTOWTDI. If you're making a session ID already, then you're almost there. You need to take it one step further. Here's the concept:
  • Make a session ID (*Done already*)
  • Record that ID in a file with the IP address, and time stamp (EPOCH or something.)
  • When the user goes to a new page, make sure to send along the current session ID (Hidden field or populate the URL location bar... whatever)
  • Check that session ID against the session ID, IP address etc. in the file that you logged to make sure that they exist. If they don't exist, then make them log in.
  • Make a new session ID.
  • Delete their old session ID and record their new session ID.
If you want to allow for just one back button, then simply record the past "two session id's." This is not necessarily elegant, but it gets the job done. (Actually the credit to this method belongs to fenonn.)

- Mission
"Heck I don't know how to do it either, but do you think that's going to stop me?!!"
  • Comment on Re: Help how to disable the Back Button in the browser

Replies are listed 'Best First'.
Re: Re: Help how to disable the Back Button in the browser
by merlyn (Sage) on Jun 26, 2001 at 05:02 UTC
      What my terse associate means is ip addresses may not be particularly meaningful or usable in a medley of cases, such as AOL users (dynamic ip allocation via their proxy), accumulating connections (office buildings going out through a single ip address), and spoofed connections.

      It is safer and easier to do without them.

      EEjack

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://91280]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2024-04-23 15:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found