Welcome, Guest ( Customer Panel | Login )




 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  

ahineman
Starting Member

USA
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'?

diegomilito
VP-CART Expert

Argentina
779 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

ahineman
Starting Member

USA
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
0 Item(s)
$0.00