JApplicationCms::checkSession

Checks the user session.

If the session record doesn't exist, initialise it. If session is new, create session variables