Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > generate own unique sessionid instead standard asp.net 120bit sessionid

Reply
Thread Tools

generate own unique sessionid instead standard asp.net 120bit sessionid

 
 
Ronald
Guest
Posts: n/a
 
      02-06-2004
howto

thanx
Ronald


 
Reply With Quote
 
 
 
 
Andy Mortimer [MS]
Guest
Posts: n/a
 
      02-09-2004
SessionID's are created in the SessionStateModule. To extend the session
state under ASP.NET you will need to write your own HTTP module and replace
the SessionStateModule in the machine.config. The SessionStateModule is
the module which provides all the session state functionality for ASP.NET.
The SessionStateModule is sealed so you cannot extend it. Perhaps they are
trying to tell us something? You can replace it; however, there is'nt any
documentation other than how to create a HTTP module to help you accomplish
this task. Unless you have a really really good argument for rolling your
own sessionid, I would stick with what has been provided for you.

Regards

Andy Mortimer [MS]
Please do not send email directly to this alias. This alias is for
newsgroup purposes only

This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"


 
Reply With Quote
 
 
 
 
Ronald
Guest
Posts: n/a
 
      02-09-2004
Hi Andy

"Andy Mortimer [MS]" <> wrote in message
news:...
> SessionID's are created in the SessionStateModule. To extend the session
> state under ASP.NET you will need to write your own HTTP module and

replace
> the SessionStateModule in the machine.config. The SessionStateModule is
> the module which provides all the session state functionality for ASP.NET.
> The SessionStateModule is sealed so you cannot extend it. Perhaps they are
> trying to tell us something? You can replace it; however, there is'nt any
> documentation other than how to create a HTTP module to help you

accomplish
> this task. Unless you have a really really good argument for rolling your
> own sessionid, I would stick with what has been provided for you.
>


We have the Problem, that the StateModule, when it runs in cookieless
SQLServer Mode, redirect to an existing foreign session instead of creating
a brand new session after site Request w/o SessionID in URL. That's a very
big Problem. I will now disable the reusage of sessionids.

Ronald


> Regards
>
> Andy Mortimer [MS]
> Please do not send email directly to this alias. This alias is for
> newsgroup purposes only
>
> This posting is provided "AS IS" with no warranties, and confers no

rights.
> OR if you wish to include a script sample in your post please add "Use of
> included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm"
>
>



 
Reply With Quote
 
Andy Mortimer [MS]
Guest
Posts: n/a
 
      02-09-2004
Thats not something I've heard of. I was of the understanding that
sessionID values are generated using
an algorithm that guarantees uniqueness so that sessions do not collide.

Andy Mortimer [MS]
Please do not send email directly to this alias. This alias is for
newsgroup purposes only

This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"

 
Reply With Quote
 
Andy Mortimer [MS]
Guest
Posts: n/a
 
      02-09-2004
Not sure if this is pertinent?

http://support.microsoft.com/default...b;EN-US;822162

Andy Mortimer [MS]
Please do not send email directly to this alias. This alias is for
newsgroup purposes only

This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"

 
Reply With Quote
 
Ronald
Guest
Posts: n/a
 
      02-17-2004
Hi Andy,

"Andy Mortimer [MS]" <> wrote in message
news:...
> Not sure if this is pertinent?
>
> http://support.microsoft.com/default...b;EN-US;822162
>


we have solved this problem. Once of our promotion partners linked to our
site through an banner with sessionid in the url. That was the reason for
'session collitions'. But it's still a problem that the sessionhandler
doesn't generate a new sessionid, if the url includes a valid sessionid
which actually not runs on the state server. I think, it's better, every
sessionstart generates a new sessionid, independ of the sessionid included
in requests url.

> Andy Mortimer [MS]
> Please do not send email directly to this alias. This alias is for
> newsgroup purposes only
>
> This posting is provided "AS IS" with no warranties, and confers no

rights.
> OR if you wish to include a script sample in your post please add "Use of
> included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm"
>



 
Reply With Quote
 
Andy Mortimer [MS]
Guest
Posts: n/a
 
      02-23-2004
Good to hear you have solved your problem, but not to clear on what is
happening. If the stored sessionid in the banner wasn't getting a page
after the session had expried, then I think that is by design.

Andy Mortimer [MS]
Please do not send email directly to this alias. This alias is for
newsgroup purposes only

This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"

 
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
Is there a unique method in python to unique a list? Token Type Python 9 09-09-2012 02:13 PM
list question... unique values in all possible unique spots ToshiBoy Python 6 08-12-2008 05:01 AM
how to generate unique value from java and mysql Mullin Java 3 04-08-2005 05:23 PM
Can we generate Unique ID from Java? Max Java 5 02-28-2004 03:00 PM
SessionID - How unique it is now ? Patrice Scribe ASP .Net 6 11-05-2003 08:43 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57