xwiki/xwiki-platform — comment on commit b334538f30c0e1fd7ff5375de08cbfcbe0baffa5
File:  line 0
By vmassol:

I still don't understand why this is done here. Imagine that you've never connected to a xwiki site. The first time you reach the wiki (on any URL) a new session will be created anyway. So why can't we can do the same when you logout, i.e. don't create the new session here but it'll get created when the new request is done.