Roundcube Community Forum

 

get session id

Started by tungle, April 14, 2011, 12:28:34 AM

Previous topic - Next topic

tungle

Hi,
I want to get session_id of the current session to input to my own function (after the user logged in).
When I tried

$myapp = rcmail::get_instance();
$sesID = $myapp->session->session_id();

$sesID is always null
What's wrong with my code, thanks.

alec

There's no such method in current Roundcube code. Just use PHP's build-in session_id() function.