You are here

function drd_server_check_session in Drupal Remote Dashboard Server 7

Same name and namespace in other branches
  1. 6 drd_server.module \drd_server_check_session()

Check the session ID if it's still valid.

This function tests if the given session is still valid.

Parameters

$sid: The session ID that was returned by drd_server_connect().

Return value

Returns TRUE if session ID is valid.

See also

drd_server_connect

1 string reference to 'drd_server_check_session'
drd_server_xmlrpc in ./drd_server.module
Implementation of hook_xmlrpc().

File

./drd_server.module, line 114

Code

function drd_server_check_session($sid) {
  $account = drd_server_get_account_by_session($sid);
  return drd_server_result('session.valid', isset($account) && $account && $account->uid > 0);
}