code/application/application.php
public function afterSessionStart()
	{
		$session = JFactory::getSession();

		if ($session->isNew())
		{
			$session->set('registry', new Registry('session'));
			$session->set('user', new JUser);
		}
	}
public function afterSessionStart()
	{
		$session = JFactory::getSession();

		if ($session->isNew())
		{
			$session->set('registry', new Registry('session'));
			$session->set('user', new JUser);
		}
	}
public function afterSessionStart ( ) { $ session = JFactory :: getSession ( ) ; if ( $ session -> isNew ( ) ) { $ session -> set ( 'registry' , new Registry ( 'session' ) ) ; $ session -> set ( 'user' , new JUser ) ; } }
After the session has been started we need to populate it with some default values.

@return  void

@since   12.2
@deprecated  4.0
After the session has been started we need to populate it with some default values .