brujo
Average Member
USA
602 Posts |
Posted - 06 May 2002 : 23:43:38
|
I posted a similar question in the ALL other subjects Forum - but it has a little to do with Forums and I am completely stuck with it ....
One of my links in my Inc_Top.asp links to a webcam page.....it does this via a page called Cam_Check.asp (given by Retro) which basically just checks to see if they are a member - if they have the Snitz cookie - it lets them in - if not - it prompts for their username and password before redirecting successful entries onto the Cam page.
This is all well and good, but when the Cam is not on, the PAGE is NOT FOUND. Since the page is actually on my pc and not on the server....(using WebcamXP)......
Is there any code I can add into this cookie check page which basically tells it - if the page is not found - then redirect to another page (one that says Cam is Off !)
The code so far is as follows :
<% 'Redirects the user if the Snitz Cookie does not exist If Request.Cookies("Snitz00User") = "" Then Response.Redirect("http://mydomain.com/forum/login.asp") End IF 'end redirect code %> <% 'Redirects the user to the chat if the Snitz Cookie exists If Request.Cookies("Snitz00User") <> "" Then Response.Redirect("http://mycampage") End IF 'end redirect code %> <html> <head> <title>Web Cam</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head>
<body bgcolor="#FFFFFF" text="#000000"> this page checks to see if you are logged on. </body> </html>
Or maybe something that states - if page not found within 10 seconds then goto .......
at the moment it is just freezing on not finding the page....
Any help on this greatly appreciated guys....
thanks
ps... forgot :
http://jobinthesun.com/forum/
Using v3.3.03
thanks
Edited by - brujo on 06 May 2002 23:45:11 |
|