Skip to content
Snippets Groups Projects
Commit 0ecd7f98 authored by Olav Morken's avatar Olav Morken
Browse files

SessionHandler - Implemented getSessionId() method.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@124 44740490-163a-0410-bde0-09ae8108e29a
parent 3d7651c2
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,14 @@ abstract class SimpleSAML_SessionHandler {
}
/* This function retrieves the session id of the current session.
*
* Returns:
* The session id of the current session.
*/
abstract public function getSessionId();
/* This function is used to store data in this session object.
*
* Note: You are allowed to store a reference to an object in the
......
......@@ -48,6 +48,16 @@ extends SimpleSAML_SessionHandler {
}
/* This function retrieves the session id of the current session.
*
* Returns:
* The session id of the current session.
*/
public function getSessionId() {
return $this->session_id;
}
/* This static function creates a session id. A session id consists
* of 32 random hexadecimal characters.
*
......
......@@ -33,6 +33,16 @@ class SimpleSAML_SessionHandlerPHP extends SimpleSAML_SessionHandler {
}
/* This function retrieves the session id of the current session.
*
* Returns:
* The session id of the current session.
*/
public function getSessionId() {
return session_id();
}
/* This function is used to store data in this session object.
*
* See the information in SimpleSAML_SessionHandler::set(...) for
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment