Possible to store session variable in vanilla $_SESSION?


Is it possible to store session variable in $_SESSION array in Nextcloud (eg : $_SESSION[“xid”] = 2424) instead of the default securised interface (i need to gather data in session files for some work by external cron job) ?

Because i noticed that when i log in to nextcloud and keep the tab open, this variable is alive, but if i close the tab and wait a certain amount of time (i suppose min 1hour or more), the Nextcloud session is alive (already logged) but not my variable session.


@Mariick you are trying to fix something that looks like a bug. Rather than working around the issue, please file a bug report in the server repo: https://github.com/nextcloud/server/