The CyberStore application takes advantage of the ASP.NET Session object to store and maintain certain information throughout the course of a shopper's visit to the Site.
Warning:
Do not modify any of these variables.
Each used by the CyberStore application are to be considered read-only. They are set based on specific CyberStore business logic. Any modification of the values for these Session Variables will result in undesired and unintended results.
The table below lists the documented Session Variables used by CyberStore.
Session Variable |
Description |
Customer_ID |
The Customer_ID for the associated with the currently logged-in Account. |
LastCategory_ID |
The Category_ID for the of the most recently visited . |
userID |
The Account_ID for the currently logged-in Account. This is null when a shopper is not logged in. |
userName |
A concatenated string containing the First and Last Name of the logged-in user.
For example: "Susan Brown"
|
userCompany |
A string containing the Company Name of the Customer to whom the logged-in Account belongs.
For example: "Bikes and Blades - North"
|
userCustomerNumber |
A string value containing the SYSPRO Customer Number associated with the Customer to which the logged-in Account is linked.
For example: "0000002"
|
Example
See the example below of the use of the userID Session Variable within a custom . This allows you to determine whether the shopper is logged-in or is browsing anonymously.
Custom login check |
Copy Code
|
<%
if (Session["userID"] == null)
{
%>
You are not currently logged in.
<%
}
else
{
%>
You are logged in as <b><%= Session["userName"].ToString() %></b>.
<%
}
%>
|