VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

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

williamj
VP-ASP 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