Get PHP session id

Hi,

So for audit purposes i need to have the PHP session ID that is created during the Security Login stored in a DB, i could get this via the $_COOKIE[‘PHPSESSID’], but this one is not set on the initial login, only the subsequent logins.

So is there any easy way to get the session id via a session variable or can i hack the ‘Security login’ to return the session id instead of the identity that currently is being returned?

thanks in advance.

Community Page
Last updated: