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

COOKIES If cookie exists then goto url else goto this url

Status
Not open for further replies.

madaxe2

Technical User
Jan 23, 2005
43
0
0
US
I want this expression to exist at the top of my pages so that if somebody tries to get into my site without a login then they get directed back to login screen.

MadAxe
 
what have you tried so far? You can use CGI.pm to read the cookie and if its not present redirect to the login page.
 
Yeah I have tried a few things but i cant figure it out.

I thought i could write a small piece of java at the head of my page to check cookie but im not to hot at java.

Then i thought i could write a cgi script to check cookie this u can do but i dont know how to get pass which page i want to go to to this script and then how to pass the info back to the page once the cookkie has been validated.

CANT SEE WOOD FOR TREES

Any suggestions or code fragments that might be able to help me


MADAXE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top