Author Topic: get session id  (Read 2966 times)

Offline tungle

  • Newbie
  • *
  • Posts: 7
get session id
« 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.

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
get session id
« Reply #1 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.