do not set cookies if not using cookies

This commit is contained in:
Miles Lott 2002-08-12 00:57:51 +00:00
parent 57145e6841
commit c60fbfd183

View File

@ -76,9 +76,12 @@
$GLOBALS['phpgw_info']['flags']['msgbox_data']['Bad login or password'] = False;
break;
case 10:
if($GLOBALS['phpgw_info']['server']['usecookies'])
{
Setcookie('sessionid');
Setcookie('kp3');
Setcookie('domain');
}
$GLOBALS['phpgw_info']['flags']['msgbox_data']['Your session could not be verified'] = False;
break;
}
@ -114,7 +117,8 @@
# login will be set here if the user logged out and uses a different username with
# the same SSL-certificate.
if (!isset($login)&&isset($sslattributes['Email'])) {
if (!isset($login)&&isset($sslattributes['Email']))
{
$login = $sslattributes['Email'];
# not checked against the database, but delivered to authentication module
$passwd = $HTTP_SERVER_VARS['SSL_CLIENT_S_DN'];