I still need some help with this. I've been to your site and there is lots of great information. I have tried several things and still can't get the site to do what I wnat it to. Here is the problem as I see it. I have a login page at
that takes the visitor to the processor page with code of:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<% Dim store, password
store=Request.Form("store")
password=Request.Form("password")
%>
<%
If store="1" and password="trask" Then
Response.Redirect("/EmployeeWebSite/tgg/home.asp")
Else
If store="2" and password="brookhurst" Then
Response.Redirect("/EmployeeWebSite/NissanGG/home.asp")
Else
If store="3" and password="lincoln" Then
Response.Redirect("/EmployeeWebSite/MDR/home.asp")
Else
If store="4" and password="escape" Then
Response.Redirect("/EmployeeWebSite/Ford/home.asp")
Else
If store="5" and password="pilot" Then
Response.Redirect("/EmployeeWebSite/Honda/home.asp")
Else
If store="6" and password="noarus" Then
Response.Redirect("/EmployeeWebSite/corporate/home.asp")
Else
Response.Redirect("/storelogin/error.asp")
End If
End If
End If
End If
End If
End If
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
<html xmlns="
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
What I want to happen is for each page that the visitor goes to in their stores employee site, no more signing in again is required. I also don't want people to go to the sites pages without signing in. I guess that I could use the same cookie value for all stores pages to look for because it may be easier and the pages aren't linked from site to site. If there were a way to give each employee site a seperate cookie value it would be great.
I am not sure where to put the cookie setting code in the first place- logiin or processor and I guess that there would be some code in the head of every page that read something like:
<%
if Request.Cookies("store")<>"MDR" then
response.redirect("
end if
%>
The MDR would repersent on stores ID and the word store might not be needed. that is were I am at now.
Please advise if you would be so kind.
Thanks Richard