durusmail: quixote-users: trivial session management
trivial session management
2005-04-04
2005-04-04
trivial session management
mso@oz.net
2005-04-04
Michele Simionato:
> Consider
>
> publisher1 = Publisher(RootDirectory())
> publisher2 = Publisher(RootDirectory(), session_manager=SessionManager())
>
> Are there significant differences (i.e. in performance) if I use
> publisher2 instead of publisher1 in the case I do not login (i.e. the
> user is None)?
>
> I am wondering if I could just user publisher2 as default publisher even
> in
> applications that do not need session management.

The overhead is merely a few calculations with a cookie and a dictionary.
Not significant unless you're getting several transactions a second.


reply