Forum Moderators: open
I am considering using the session variable that the Windows server creates automatically - e.g. CBLPPDLDNJPAIFNAHDMLKOKC.
How unique is this variable? - I'm not sure how the server generates it.
My plan is to write the variable to a database along with other information, then recall the info later in the session using the session variable. What are the chances of getting a duplicate in the database? I'm assuming that it is almost impossible, but I thought Id check here first.
To give you an idea of how unique the session id would be, you can work out how many different possible combinations of the session id there are with 26 to the power of (number of characters).
So for a 22 character id as in your example, there are 26^22 = 1.4x10^31 possible values. Although it's possible that two concurrent users might get the same random session id value, even if you had a million users on the site at once the chances of it happening would less then one in a billion billion!