<% if session("idCustomer")="0" or session("idCustomer")="" then %>
This part of my page will be shown when customers are not logged in.
<% else %>
This part of my page will be shown after the customer has logged in.
<% end if %>
For example, let's put this to work and show a customer service menu only to a customer that has logged into the store. Customers that have not already logged in will see a simple link to log in. This could go - for example - in a left or right-side column of your store design, within your **pc/header.asp** file.
<%
' If the customer is not logged in
' show a link to the registration page.
if session("idCustomer")="0" or session("idCustomer")="" then
%>
<%
else
' Otherwise show the customer service links
%>
Account Home
Previous Orders
Billing Address
Shipping Addresses
<%
' If the Wish List feature is active, show a link to it
if (scWL="-1") or ((scBTO=1) and (iBTOQuote=1)) then
%>
Saved Products
<%
end if
%>
Log Out
<%
end if
%>