﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
11555	Undocumented contrib.sessions behaviour	Tomasz Zieliński	nobody	"When new session starts ({{{sessionid}}} not passed in cookies) and {{{request.session.session_key}}} is accessed before {{{request.session[""abc""]}}}, then:

1) {{{request.session.session_key}}} is generated, 

2) first access to {{{request.session[ ""abc"" ]}}} calls {{{request.session.load()}}}, which overrides (by calling {{{create()}}}) {{{request.session.session_key}}} because the {{{session_key}}} cannot be found in DB.

This can be manually fixed by calling {{{request.session.load()}}} before using {{{request.session.session_key}}}.

I'm not sure if this is a bug or undocumented feature - I can send relevant patch depending on the answer.

"	Bug	closed	contrib.sessions	1.0	Normal	fixed		Aymeric Augustin	Accepted	1	0	0	1	0	0
