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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirect if refresh page

Status
Not open for further replies.

kensington43

Technical User
Nov 29, 2005
50
US
I would like to make a page go somewhere else if someone refreshes the page.
Please advise how I can do that.

This is an action page that should not be refreshed and want to make sure if it is refreshed it will go to another web page.
 
I would think it would work best with server-side code and on page load you would test for a session variable and if it does not exist then you set one as a flag that the page has been displayed once already. If it DID find the value already existed then before rendering the page you could redirect elsewhere.


Stamp out, eliminate and abolish redundancy!
 
Thanks it works great with Server side as you suggested.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top