Sun
ONE Active Server Pages Product Home Page Developer Site Version
 

ContentsPreviousNextIndex



Remarks: ASP Session Object SessionID Property

Do not use the SessionID property to generate primary key values for a database application. This is because if the Web server is restarted, some SessionID values may be the same as those generated before the server was stopped. Instead, you should use an auto-increment column data type.

Also, keep in mind that the session identifier persists as long as the current Web server session is running. If the Web server service is shut down, the identifiers restart. Therefore, it is not a good idea to use the session identifier to create logon IDs, because you could end up with duplicates.



ContentsPreviousNextIndex