solution of the problem of twice login + unserialize ...

dominique.dalponte@utbm.fr dominique.dalponte@utbm.fr
Fri, 21 Dec 2001 13:21:17 +0000



thank for jan to solve my two problem 

I have a configuration like this :

> /etc/httpd/conf/httpd.conf 
> DocumentRoot "/var/www/html/horde" 
> Alias /horde/ /var/www/html/horde/ 



 > $this->applications['horde'] = array( 
 >     'fileroot' => dirname(__FILE__) . '/..', 
 >     'webroot' => '/horde', 
 >     'initial_page' => 'login.php', 
 >     'icon' => '/horde/graphics/login.gif', 
 >     'name' => _("Horde"), 
 >     'allow_guests' => true, 
 >     'show' => true, 
 >     'templates' => dirname(__FILE__) . '/../templates', 
 >     'cookie_domain' => $GLOBALS['HTTP_SERVER_VARS']['SERVER_NAME'], 
 >     'cookie_path' => '/horde', 
 >     'server_name' => $GLOBALS['HTTP_SERVER_VARS']['SERVER_NAME'], 
 >     'server_port' => $GLOBALS['HTTP_SERVER_VARS']['SERVER_PORT'] 
 > ); 

 
my problem was the cookie_path : it was not set to "/"
after I change it all run ok :

just one login
and no error : unserialize() failed at offset 0 of 36 bytes in /var/www
/html/horde/lib/Auth.php on line 227

but just a question : if I set the documentroot in apache to "

> DocumentRoot "/var/www/html/horde" 

why the webroot is set to '/horde'
what mean webroot ?

A+