Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 cookie login problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

williamj
VP-CART New User

Canada
77 Posts

Posted - November 15 2005 :  19:19:15  Show Profile  Reply with Quote
Hello Folks,

VPASP version 4

I'm using some code I found on this forum to customize my cookie login. It works but I do have one problem.

I have cookie login enabled but if I close my browser and return even though the cookie logs me in properly it's not reflected in my customization.

In other words: even though I am logged in my customized message at the top of my home page is still asking me to log in.

If I use the refresh button on my browser the message will change and it will show that I'm logged in. It will then stay that way for the rest of the session.

Does anyone know what may be causing this? I appreciate any help I can get.

The code I'm using is listed below.

dim loginid
dim fullname
loginid=GetSess("Customerid")
if loginid="" then
Response.Write "<font face='arial' size='2'> <b>Hello.</b> Already a customer? <a href='shopping/shopcustadminlogin.asp'>Sign in</a> for faster service.</font>"
else
fullname= GetSess("firstname") & " " & GetSess("lastname")
Response.Write "<font face='arial' size=2>  <b>Hello, " & fullname & ".</b></font>"
Response.Write "<font face='verdana,arial' size=1>  (if you're not " & fullname & ", <a href='shopping/shopend.asp?end=1'>click here.</a>)</font>"
end if

  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00