Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > SessionID

Reply
Thread Tools

SessionID

 
 
Paulo
Guest
Posts: n/a
 
      09-04-2009
Can the SessionID returns the same number used in any time?
Example: if the user receives the number 123 can this number 123 be returned
other time by other user or by himself?

or this number is never repeated?

or should I use other mechanism like: 20090904_170303
where before _ is the current date and after is the time with the mili/micro
seconds?


 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      09-04-2009
Paulo wrote on 04 sep 2009 in microsoft.public.inetserver.asp.general:
> Can the SessionID returns the same number used in any time?


No, only during a session.
If the same user also opens a session with another browser, or with the
same browser at another time, it is another session with anothe sessionid

> Example: if the user receives the number 123 can this number 123 be
> returned other time by other user or by himself?


The sessionid is given by the ASP-server stored as a sessioncookie on the
browser and is specific for that user.

It is a very long string of characters on both sides of the =,
like:

ASPSESSIONIDCQPAULOA=KONHPFIAKKPOKCKGFPAULOHO

> or this number is never repeated?


It does not repeat within a normal lifetime of less than 625 years.

> or should I use other mechanism like: 20090904_170303


A mechanism to achieve what?

> where before _ is the current date and after is the time with the
> mili/micro seconds?


This is not as good, and you won't get microseconds
in ASP-vbscript or ASP-Jscript btw.

Strange you ask this, this knowledge is available all over the web
and in the archive of this NG too.

Is this perhaps a school assignment?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validate SessionID Shankar Reddy ASP .Net 3 09-25-2004 05:59 AM
generate own unique sessionid instead standard asp.net 120bit sessionid Ronald ASP .Net 6 02-23-2004 08:03 AM
ASP.NET Duplicate SessionID Problem CQL ASP .Net 2 08-11-2003 01:50 PM
Re: Debugging -- SessionID and ASP.Net alien2_51 ASP .Net 1 07-24-2003 08:54 PM
Can I open a new window with a new SessionID? Robb Smith ASP .Net 2 07-18-2003 07:20 AM



Advertisments