Deprecation: #93023 - Reworked session handling
See forge#93023
Description
As described in Breaking: #93023 - Reworked session handling the whole session handling in the TYPO3 Core was reworked by moving it out of the user authentication classes.
Therefore some properties and methods within
Abstract
and its subclasses have been marked as deprecated:
TYPO3\
CMS\ Core\ Authentication\ Abstract User Authentication->create Session Id () TYPO3\
CMS\ Core\ Authentication\ Abstract User Authentication->fetch User Session ()
Impact
Accessing
id
or calling
is
respectively
get
will trigger a PHP
E_
error.
Calling
create
or
fetch
will not
trigger a PHP
E_
error but will still be reported by the extension
scanner.
Affected Installations
All TYPO3 installations with custom extensions directly accessing or calling the deprecated properties or methods.
Migration
Creating a new session is now handled by the
User
.
Therefore the identifier is set internally on creation of a new session
and should not longer be called directly. Use e.g.
User
or
User
to create a new session
and then access
User
.
Use
User
instead of
is
to check if a session is already persisted.
Use the
User
to create a new session and then directly
access the
User
instead of calling
fetch
.
Use
User
instead of
get
. To
access this information from an user authentication object, call
$user
.