Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Code Problems - Help to Redirect User
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

brujo
Average Member

USA
602 Posts

Posted - 06 May 2002 :  23:43:38  Show Profile  Visit brujo's Homepage
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
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07