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")
%>
 

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