Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grabbing an URL before it is displayed in the browser

Status
Not open for further replies.

Perceval

Technical User
May 6, 2002
5
US
Hi all,

I am designing a login access security scheme on a CF website. I would like users to be able to bookmark some pages once they've logged in, and to be able to access these pages again in future sessions.

Here is how it would work: the user clicks on a bookmark to open an URL, he is first directed to the login screen, and then, once he is authenticated, he is directed to the URL he requested.

The problem is that I don't know how to grab the URL specified in the bookmark, and how to pass it as a variable before logging the user in. Since this URL is not displayed in the browser, I can't use CGI variables such as script_name or http_referer.

Could anyone give me some advice? Many thanks in advance,

Perceval










 
Use hidden form fields or pass the name of the page the user wishes to jump to on the URL perhaps using a number to identify which page the user would like to jump to once logged in. You must remember to pass the value through the login process so that if the user enters a wrong password and is shown the login screen again you must remember to pass the value on the url to the page again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top