This topic is locked

User Id In Session

6/3/2013 5:59:39 AM
PHPRunner General questions
S
sickacid author

Hi,

I've a problem if I use $session for get the user_id I always get the name of user and not the id:
$_SESSION["UserID"] = name

$_SESSION["UserName"] = name
but i need to get the Id, where is the mistake?

Admin 6/3/2013

If you need to save any other field value in session variable use AfterSuccessfulLogin event:

http://xlinesoft.com/phprunner/docs/save_user_data_in_session_variables.htm