JSESSIONSTORAGE-001
JSessionStorageDatabase
JSessionStorage*
Custom J3 session storage classes were removed.
JSessionStorageDatabase → Session HandlerInterface implementations
What you will see
- Class "JSessionStorage" not found
Symptoms people search
session handler fatal
Replace this code
Swap JSessionStorageDatabase for Session HandlerInterface implementations.
Joomla 3
Remove or stop calling this
class JSessionStorageRedis extends JSessionStorage {}Joomla 4 / 6
Use this instead
Implement SessionHandlerInterface / Psr\Session. Do not extend JSessionStorage.How to fix it
- 1Register a modern session handler in configuration or a service provider.
Also known as
JSessionStorage · JSessionStorageDatabase
There is no 1:1 swap for this one. The architecture changed. If you cannot rewrite it, Infyways can.
Related issues
- Joomla 3 → 4Joomla API
JRequest::getVar() and the whole JRequest API
JRequest::getVar() → $app->getInput()->get('id')
- Joomla 3 → 4Joomla API
JError / JException
JError::raiseError() → throw new RuntimeException() / try-catch
- Joomla 3 → 4Joomla API
isAdmin() / isSite()
$app->isAdmin() → $app->isClient('administrator') / isClient('site')
- Joomla 3 → 4Joomla API
Factory::getUri()
JFactory::getUri() → Uri::getInstance()
- Joomla 3 → 4Joomla API
Factory::getXml() / JXMLElement
JFactory::getXML() → SimpleXMLElement
- Joomla 3 → 4Joomla API
Factory::getEditor()
JFactory::getEditor() → Editor::getInstance()