provide an API to forcibly start a session

Created on 1 April 2017, over 7 years ago
Updated 21 March 2024, 6 months ago

AFAICT there is no API to start a session. The best way appears to be to store something in $_SESSION: see http://drupal.stackexchange.com/questions/163142/what-is-the-right-way-t...

But that means that every module that might want to ensure a session is started needs to store junk data in $_SESSION. This is not ideal (and indeed the patch at #2488116: Document the session subsystem β†’ says the amount of data in the session should be kept to a minimum).

There should instead be a forceStart() method on SessionManager.

✨ Feature request
Status

Closed: won't fix

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated about 6 hours ago

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024