I am running a Zend Framework application and I have to integrate a third party chat application and for that I need to have access of signed in user's ID, How can I access this id that is stored in Zend session.
Because this is not working
if (!empty($_SESSION['Zend_Auth']['storage']->user_id)) {
$userid = $_SESSION['Zend_Auth']['storage']->user_id;
}