From fd297aad19fcf388a8af4f89bd05692c191bb8c8 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Fri, 23 Jun 2006 19:09:38 +0000 Subject: [PATCH] added support for commiting sessions(remove file lock for php sessions) --- phpgwapi/inc/class.sessions.inc.php | 9 +++++++++ phpgwapi/inc/class.sessions_php4.inc.php | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/phpgwapi/inc/class.sessions.inc.php b/phpgwapi/inc/class.sessions.inc.php index 8270cd2187..9a0725c276 100644 --- a/phpgwapi/inc/class.sessions.inc.php +++ b/phpgwapi/inc/class.sessions.inc.php @@ -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) { $parts = explode('@',$both); diff --git a/phpgwapi/inc/class.sessions_php4.inc.php b/phpgwapi/inc/class.sessions_php4.inc.php index ef67e5f8b2..692dbe8096 100644 --- a/phpgwapi/inc/class.sessions_php4.inc.php +++ b/phpgwapi/inc/class.sessions_php4.inc.php @@ -43,6 +43,16 @@ session_name('sessionid'); } + /** + * commit the sessiondata to the filesystem + * + * @return bool + */ + function commit_session() { + session_write_close(); + return true; + } + function read_session() { if (!$this->sessionid)