View Single Post
  #5 (permalink)  
Old 09-07-05, 02:40 PM
nicpon nicpon is offline
Wannabe Coder
 
Join Date: Apr 2004
Location: Moving
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
How about using SSL how do I implement that ??
I made thie logged.asp file with this code
Code:
if request.ServerVariables("URL") = request.ServerVariables("URL") then
response.Write("You cannot access this file directly")
else
if session("name")="" or isnull(session("name"))=true then
response.redirect("../login2.asp")
else
response.Redirect("../ProfileDisplay.asp")
end if
end if
and then i included that file
with this command
Code:
<!--#include file="includes/logged.asp"-->
in the main file and i got You cannot access this file directly msg.
I'm doing something wrong here. That logged.asp file is in includes dir and then login2 and profiledisplay in root, I aslo want to protect logged.asp from viewing.

Last edited by nicpon; 09-07-05 at 03:13 PM.
Reply With Quote