Sean Lang Sean Lang - 2 months ago 10
CSS Question

Joomla 2.5 check user logged in

How do i check if a user is logged in in Joomla 2.5? I can only seem to find code snippets for the older versions of joomla. Is it the same?

Answer
if(JFactory::getUser()->id)
{
//user has logged in
}