Ability to use custom session id generation algorithms

[email protected] Thu, 19 Nov 2009 16:05:06 -0000
Newsgroups gmane.comp.python.twisted.bugs
Message-ID <[email protected]>
New submission from nazgul <None>:

Currently, Site.makeSession() generates session ids via Site._mkuid() and the algorithm in latter is predefined.

Sure one can hack it by overriding Site._mkuid(), but this is a bad practice as I was told.

I suggest there should be a way to pass custom callback function to Site.makeSession(), which then would be called instead of predefined Site._mkuid().

----------
Type     : enhancement
Component: web
Keywords : 
Priority : normal
Nosy     : 
----------
http://twistedmatrix.com/trac/ticket/4123