![]() |
ASP Session Scope![]() ![]() ![]() ![]() ![]()
To give a variable session scope, store it in the Session object by assigning a value to a named entry in the object. For example, the following commands store two new variables in the Session object.
Session ("First Name") - "Jeff" To retrieve information from the session object, access the named entry by using the output directive (<,% =) or Response. Write. The following example uses the output directive to display the current value of Session ("First Name"):
Welcome <% = Session ("First Name") %> <% If Session ("Screen Resolution") = "Low" Then %> This is the text version of the page
|
|
Domain NamesASP IDC and HTX Files Creating ASP Pages Adding Script Commands Mixing HTML and Script Commands ASP Directives Setting the Primary Scripting Language Using VBScript and JScript on a Server Variable Scope Session Scope Application Scope
Defining Procedures Calling Procedures Components ASP ApplicationsWeb DesignWeb HostingE Commerce |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |