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-Cart StoreFront Customer Forum

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

 All Forums
 VPCart Forum
 VP-ASP 7.0 Questions
 Session Variables - userid
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

19 Posts

Posted - January 20 2011 :  14:51:32  Show Profile  Reply with Quote
Is there an existing session variable for userID? If so, what is it? A better question might be 'Where can I find all the existing session variables'?

VP-ASP Expert

733 Posts

Posted - January 27 2011 :  20:50:16  Show Profile  Reply with Quote
user id session seems to be stored in "CustomerID" variable.

the complete session variables should be all in shop$db.asp :

sub UpdateCustomerSessionData
SetSess "Firstname", strFirstname
SetSess "Lastname", strLastname
SetSess "Address", strAddress
SetSess "City", strCity
SetSess "State", strState
SetSess "PostCode", strPostCode
SetSess "Country", strCountry
SetSess "Company", strCompany
SetSess "Website", strWebsite
SetSess "Phone", strPhone
SetSess "Workphone", strWorkphone
SetSess "Mobilephone", strMobilephone
SetSess "Fax", strFax
SetSess "Email", strEmail
SetSess "shipname", strshipname
SetSess "ShipAddress", strShipaddress
SetSess "ShipTown", strshiptown
SetSess "ShipZip", strShipZip
SetSess "ShipState", strShipstate
SetSess "ShipCountry", strShipcountry
SetSess "ShipCompany", strShipcompany
SetSess "ShipMethodType", strshipmethod
SetSess "ShipCost", strShipCost
SetSess "smprice", strShipCost
if strCustomerID <> "" and not isnull(strCustomerID) then
SetSess "CustomerID", strCustomerID
end if
SetSess "ShipComment", strshipcomment
SetSess "Custdiscount", strdiscount
SetSess "GiftCertificate",strgiftcertificate
SetSess "BlnMailList",blnMailList
SetSess "BlnCookieQuestion",blnCookieQuestion
SetSess "Customertype",strcustomertype
SetSess "vatnumber",strvatnumber
SetSess "hearaboutus",strhearaboutus
SetSess "ShipAddress2", strShipaddress2
SetSess "Address2", straddress2

example is Firstname, that is the session variable. strFirstname is not a session variable, but a value for the field.

Maybe this is what you require ?

Diego M.
Go to Top of Page

Starting Member

19 Posts

Posted - January 31 2011 :  15:40:54  Show Profile  Reply with Quote
Ok thanks. For some reason my session variable dump wasn't showing everything.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000