I am trying to get the JSession inside my module php file.
But every time I wrote this code:
$session = JFactory::getSession();
Joomla responds with a 500 error for the page that my module is loaded.
If I comment out that line, the page is loading again fine.
What am I doing wrong?
$session->set('something', 'something');
anywhere else?