HOW TO MAKE SESSION ID?

by barkkathulla 2012-09-22 11:57:23

<font color=#000080>
<%
session(“id”)=“USER”
session(“id1”)=session(“id1”)+1
response.write (“USER NAME :”)
response.write Session(“id”)
response.write Session(“id1”)
session.timeout=1
%></font>

SESSIONID PROPERTY

The sessionid property is a read-only property that returns the session identification number for each user.each session has a unique identifier,generated by the application when the session is created.the session identification number is actually a cookie that is stored on the user’s machine .it will expire only when the session timeout. One rather large problem with the session object is that it simply won’t work if the user has cookies turned off.the session won’t get started when the user browses the site and they won’t get access to the session object

To retrieve the current user’s sessionId,use:

<% session.sessionid %>
516
like
0
dislike
0
mail
flag

You must LOGIN to add comments