lost of session variable

P

Pierre

Hi all,

I am using asp and mdb to password protect pages.

The last step of the process is not working.

After a user sucessfully identitfy himself, the logonpage
fail to redirect to the calling page.
The code below show me that the variable Session("Referrer") is empty

Any clues why?
It is almost working!

Regards, pierre

<% @language="vbscript" %>
<!--#include virtual="/logon/logon.inc"-->
<%
response.write "Referrer="
response.write session("REFERRER")
response.end

' Was this page posted to?
If UCase(Request.ServerVariables("HTTP_METHOD")) = "POST" Then
' If so, verify the username/password that was entered.
If ComparePassword(Request("UID"),Request("PWD")) Then
' If comparison was good, store the user name...
Session("UID") = Request("UID")
' ..and redirect back to the original page.
Response.Redirect Session("REFERRER")
End If
End If
%>
 
J

Jon Spivey

Hi Pierre,

How are you setting the session var in the first place? In your logon.inc
page you should have some code to the effect of
<%
session("referrer") = request.servervariables("SCRIPT_NAME")
%>
 
P

Pierre

Thanks for the answer

i am using

Session("REFERRER") = Request.ServerVariables("URL")

pierre


Jon Spivey a écrit dans le message ...
 
M

MikeR

Put a response.write in here,and see what's getting filled.
MikeR

<%
session("referrer") = request.servervariables("SCRIPT_NAME")
%>
 
Top