aDVANCED SESSION OBJECTS IN ASP..
by barkkathulla[ Edit ] 2012-09-22 11:56:42
<font color=#00004D>Session Object(timeout propertie available)</font>
Session is a different type of variable it stores the datas it self and also pass the values to different pages.
To give a variable session scop, 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”
session (“last name”)=“smith”
%>
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”) %>