Session("uid") Problem

M

mjm

Am doing security for certain pages. Have everything in
place but whenever I try to use an If..then statement to
interrogate either the Session("uid") or any variable, I
get an error that the file cannot be found when the
Response.Redirect statement is executed. Executing the
Response.Redirect without If..then works just fine.
********************************************************
Code is:

<%Response.Buffer = true %>
<%
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
%>

<%Response.Clear%>

<%
uid = Session("uid")
If uid = ""
then
response.redirect "http://www.path/path.asp"
%>
********************************************************
Also am trying to pass the Session("uid") variable and
that is not working either.
********************************************************
The code is:

<%Session("uid")=cStr(fp_rs("ID"))%>
</p>
<a href= "MaintainDB.asp?uid=<%=Session("uid")%>"></a>
********************************************************
Any help would be appreciated. Thank You
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top