How to override Session.php in joomla

19 Views Asked by At

I have to increase session lifetime for individual users. We can achieve this by changing in Session.php file. I'm not changing Session.php file because it's a core file . So I'm trying to override this file.

I used onAfterRoute event

But its not working. public function onAfterRoute() { JLoader::register('JDatabase', JPATH_LIBRARIES . '/camcloud/src/Session.php', true); }

0

There are 0 best solutions below