added support for commiting sessions(remove file lock for php sessions)

This commit is contained in:
Lars Kneschke 2006-06-23 19:09:38 +00:00
parent 37b1a0c0c1
commit fd297aad19
2 changed files with 19 additions and 0 deletions

View File

@ -212,6 +212,15 @@
} }
} }
/**
* commit the sessiondata to storage (needs to be reimplemented for the subclasses)
*
* @return bool
*/
function commit_session() {
return true;
}
function split_login_domain($both,&$login,&$domain) function split_login_domain($both,&$login,&$domain)
{ {
$parts = explode('@',$both); $parts = explode('@',$both);

View File

@ -43,6 +43,16 @@
session_name('sessionid'); session_name('sessionid');
} }
/**
* commit the sessiondata to the filesystem
*
* @return bool
*/
function commit_session() {
session_write_close();
return true;
}
function read_session() function read_session()
{ {
if (!$this->sessionid) if (!$this->sessionid)