RE: Sessionid duplication

2007-01-17 Thread Caldarale, Charles R
> From: Eric Waite [mailto:[EMAIL PROTECTED] > Subject: Re: Sessionid duplication > > After adding entry I would expected to see the jvm1 appended > to the end of the session id? I don't see it It worked for me on 5.5.20: http://myhost1.com:8080/servl

Re: Sessionid duplication

2007-01-17 Thread Eric Waite
After adding entry I would expected to see the jvm1 appended to the end of the session id? I don't see it - Eric David Delbecq wrote: according to code this will, for that engine, generate sessionid like this: 123456789ABCDEF0jvm1 En l'instant précis du 01/17/07 17:46, Eric Waite s'exp

Re: Sessionid duplication

2007-01-17 Thread David Delbecq
according to code this will, for that engine, generate sessionid like this: 123456789ABCDEF0jvm1 En l'instant précis du 01/17/07 17:46, Eric Waite s'exprimait dans toute sa noblesse: > So using the following: > > with unique name and jvmRoute will ensure unique sessionIds? > > I apologize if th

Re: Sessionid duplication

2007-01-17 Thread Eric Waite
So using the following: with unique name and jvmRoute will ensure unique sessionIds? I apologize if the question is naive, I am a novice in configuring Tomcat. - Eric Peter Crowther wrote: From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] It's not quite that bad. If a jvmRoute is configur

RE: Sessionid duplication

2007-01-17 Thread Peter Crowther
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] > It's not quite that bad. If a jvmRoute is configured for the > , > its value is appended to the randomly generated session id to make it > unique across servers with a common front end. That'd be sufficient - thanks, Chuck. I should read

Re: Sessionid duplication

2007-01-17 Thread David Delbecq
En l'instant précis du 01/17/07 17:00, Peter Crowther s'exprimait dans toute sa noblesse: >> From: David Delbecq [mailto:[EMAIL PROTECTED] >> Those are generated by taking the first 16 characters of >> the md5 sum of a random byte[16]. >> > > Interesting. Note that although the existing code

RE: Sessionid duplication

2007-01-17 Thread Caldarale, Charles R
> From: Peter Crowther [mailto:[EMAIL PROTECTED] > Subject: RE: Sessionid duplication > > If you ever happen to get the same seed between two servers, you're > seriously hosed - I *think* the way the code works, those systems will > generate and continue to generate dupl

RE: Sessionid duplication

2007-01-17 Thread Peter Crowther
> From: David Delbecq [mailto:[EMAIL PROTECTED] > Those are generated by taking the first 16 characters of > the md5 sum of a random byte[16]. Interesting. Note that although the existing code makes considerable effort to ensure this *is* random, a number of factors can apparently decrease the r

Re: Sessionid duplication

2007-01-17 Thread Eric Waite
Thank you for the great explanation. - Eric David Delbecq wrote: By default, the manager generates 16 hexadecimal characters session identifiers. Those are generated by taking the first 16 characters of the md5 sum of a random byte[16]. If we assume (that might be a bit wrong) that all md5 sums

Re: Sessionid duplication

2007-01-17 Thread David Delbecq
By default, the manager generates 16 hexadecimal characters session identifiers. Those are generated by taking the first 16 characters of the md5 sum of a random byte[16]. If we assume (that might be a bit wrong) that all md5 sums are equiprobables, that means in the end that your session id is a 6

Re: Sessionid duplication

2007-01-17 Thread Eric Waite
Very very small may be acceptable, what do you mean by very very small...? Would 30,000 unique sessions across 3 servers have a potential issue? Thanks. Eric Filip Hanik - Dev Lists wrote: while there is a risk for duplicate sessions being generated, we believe it to be very very small. Wh

Re: Sessionid duplication

2007-01-17 Thread Filip Hanik - Dev Lists
while there is a risk for duplicate sessions being generated, we believe it to be very very small. What you can do is set jvmRoute in the element to be unique for each one, that makes it less likely to be duplicate. Or you can come up with a better random algorithm, take a look at org.apache.ca