From 48083ef49d899f4822bf6cd5c2cadedccd21b641 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 14 Dec 2022 22:42:19 +0100 Subject: [PATCH] Update developer_manual/basics/controllers.rst Signed-off-by: Daniel --- developer_manual/basics/controllers.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/developer_manual/basics/controllers.rst b/developer_manual/basics/controllers.rst index ef7156599..6567b57c3 100644 --- a/developer_manual/basics/controllers.rst +++ b/developer_manual/basics/controllers.rst @@ -220,7 +220,7 @@ Reading and writing session variables To set, get or modify session variables, the ISession object has to be injected into the controller. -Nextcloud will read existing session data at the beginning of the request lifecycle and close the session afterwards. This means that in order to write to the session, the session has to be opened first. This is done implicitly when calling the set method, but would close immidiately afterwards. To prevent this, the session has to be explicitly opened by calling the reopen method. +Nextcloud will read existing session data at the beginning of the request lifecycle and close the session afterwards. This means that in order to write to the session, the session has to be opened first. This is done implicitly when calling the set method, but would close immediately afterwards. To prevent this, the session has to be explicitly opened by calling the reopen method. Alternatively you can use the ``@UseSession`` annotation to automatically open and close the session for you.