Forum Moderators: open

Message Too Old, No Replies

ASP.net Session ID length

From 24 chars to 16?

         

jasonc

2:33 pm on Jul 23, 2003 (gmt 0)

10+ Year Member



Anyone know how to change the session ID length in ASP.net? I'm developing a site that previously used 16 character ASP session IDs stored in a SQL Server DB.

Now - porting the system to ASP.net and its 24 character SIDs won't fit.

Normally I would just resize the field, but its not an option given the huge dependancies.

[edited by: jasonc at 2:47 pm (utc) on July 23, 2003]

bcolflesh

2:38 pm on Jul 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What site dependencies are based on the length of the SID, as opposed to the actual characters in it?

jasonc

2:45 pm on Jul 23, 2003 (gmt 0)

10+ Year Member



The SID is used as a unique identifier in the database, and is used downstream in our processes, as well as in other databases.

Trust me - it'll be difficult to change :)

bcolflesh

2:55 pm on Jul 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In that case - cut off 8 characters from the SID before storing it, or build your own custom SID generation script.