session id

B

bushi

hi everyone!
i have a web application,i want to get unique session
id for each visitor.session id should not assigned by me like:
session["s_id"]=index;
is it possible to assign a session id automatically when a client
visit my webpage?i will wait 4 any help anxiously as i got stuck at
that point.
 
M

Mark Rae

hi everyone!
i have a web application,i want to get unique session
id for each visitor.session id should not assigned by me like:
session["s_id"]=index;
is it possible to assign a session id automatically when a client
visit my webpage?i will wait 4 any help anxiously as i got stuck at
that point.

Well, at the risk of stating the obvious, why don't you just use the
Session.SessionID...? :)
 
L

Laurent Bugnion, MVP

Hi,
hi everyone!
i have a web application,i want to get unique session
id for each visitor.session id should not assigned by me like:
session["s_id"]=index;
is it possible to assign a session id automatically when a client
visit my webpage?i will wait 4 any help anxiously as i got stuck at
that point.

Others suggested Session.SessionID, which is obviously the way to go.
However, you should read that:

http://geekswithblogs.net/lbugnion/archive/2007/02/25/107243.aspx

HTH,
Laurent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top