Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: tungle on April 14, 2011, 12:28:34 AM

Title: get session id
Post by: tungle on April 14, 2011, 12:28:34 AM
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.
Title: get session id
Post by: alec on April 14, 2011, 02:31:00 AM
There's no such method in current Roundcube code. Just use PHP's build-in session_id() function.