[Catalyst] Duplicate session ids

Jonathan Rockway jon at jrock.us
Sat May 26 21:19:48 GMT 2007


On Saturday 26 May 2007 03:08:48 pm Perrin Harkins wrote:
> On 5/26/07, Bill Moseley <moseley at hank.org> wrote:
> > Perhaps an easier way to show the problem with duplicate created
> > sessions would help.
>
> Do you mean duplicate or multiple?  The session ID generation code in
> Catalyst::Plugin::Session does look like it could generate duplicates
> to me, but that would be rare and unpredictable.
>

Please keep in mind that by "rare", he means that you would have to generate 
2317195645184714165087019331424 sessions per second for 10000000000 years in 
order to have a 50% chance of colliding with an existing session.

In other words, don't worry about duplicate session IDs.

-- 
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do {
$,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,
";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070526/a43fb23d/attachment.pgp


More information about the Catalyst mailing list