aDVANCED SESSION OBJECTS IN ASP..

by barkkathulla 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â) %>

Tagged in:

526
like
0
dislike
0
mail
flag

You must LOGIN to add comments