CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Prevent returning to previous page

 



Rita
Deleted

Mar 31, 2000, 6:09 AM

Post #1 of 5 (738 views)
Prevent returning to previous page Can't Post

I need to have my users access a page only one time. I've tried PRAGMA, and that simply forces the previous page to re-load.

The current flow of the website is
Home Page
Registration Page
(Submit Button)
Main Menu Page
(Submit Button)
Result Page
(Back Button)
Main Menu Page

I need the flow to skip the Main Menu page when the "Back" button is pressed and so be:
Home Page
Registration Page
(Submit Button)
Main Menu Page
(Submit Button)
Result Page
(Back Button)
Registration Page


Jasmine
Administrator / Moderator

Apr 1, 2000, 4:52 PM

Post #2 of 5 (738 views)
Re: Prevent returning to previous page [In reply to] Can't Post

As far as I know, there is no way to prevent a user from hitting their back button, or to change the behavior and skip a page in the user history.

There may be a javascript solution, but that won't help if any of your visitors have javascript turned off in their browser.



Cure
User

Apr 1, 2000, 6:23 PM

Post #3 of 5 (738 views)
Re: Prevent returning to previous page [In reply to] Can't Post

Hi

and your perl question is... ?


Cure


Jasmine
Administrator / Moderator

Apr 1, 2000, 10:34 PM

Post #4 of 5 (738 views)
Re: Prevent returning to previous page [In reply to] Can't Post

Hitting the "back" and "forward" buttons on your browser does not make any call to the server -- it is calling the local cache to display the file.

Technically, anything outside of this "rectangle box" where web pages appear, a webmaster has no control over what the visitor does.

For example, a javascript may prevent a user from right-clicking within the box, but there's absolutely no way for the webmaster to prevent the user from clicking "View, Source". Javscript can prompt the print box, but can't make the page automatically print.

Taking this logic a step further, there's no way to wipe out the user's local cache to force a re-download of the page so that the REFERER tag is correct. You can try the pragma: no-cache, but that doesn't work on many versions of IE but it does with versions of Netscape after 3.0 (or was it 2.0?).

As much as we'd like to control every facet of how visitors behave with our web sites, it's a pipe dream. In all fairness, these limitations benefit both the end-user and ourselves when we do our own surfing.


Rita
Deleted

Apr 2, 2000, 5:19 AM

Post #5 of 5 (738 views)
Re: Prevent returning to previous page [In reply to] Can't Post

Thanks. Just knowing the Back button can't be turned off is a help.

I've looked into using HTTP_REFERER on the menu page. Unfortunately, when the "Back" button is used the value does not change. I'm still hoping some Environment variable or form event I've over looked will at tell me how the page has been accessed.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives