Commit 666a9b35 authored by Benoit Mortier's avatar Benoit Mortier
Browse files

Fixes: #343 we need a webservice for fusiondirectory (bugfixes only in...

Fixes: #343 we need a webservice for fusiondirectory (bugfixes only in class_objects.in and class_session.inc
Showing with 2 additions and 2 deletions
+2 -2
......@@ -193,7 +193,7 @@ class objects
static function create ($type)
{
return self::open($type, 'new');
return self::open('new', $type);
}
static function infos ($type)
......
......@@ -252,6 +252,7 @@ class session {
*/
public static function start()
{
session_name("FusionDirectory");
/* Set cookie lifetime to one day (The parameter is in seconds ) */
session_set_cookie_params(24*60*60);
......@@ -262,7 +263,6 @@ class session {
!! The garbage collector is a cron job on debian systems, the cronjob will fetch the timeout from
the php.ini, so if you use debian, you must hardcode session.gc_maxlifetime in your php.ini */
ini_set("session.gc_maxlifetime",24*60*60);
session_name("FusionDirectory");
session_start();
/* Check for changed browsers and bail out */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment