You may also use the global session PHP function to retrieve and store data in . session ID during authentication if you are using the built-in LoginController .