mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 04:41:41 +02:00
setcookie seems not to like domain-names without dots (it does not set the cookie at all, in that case). Leaving the domain-name empty, get setcookie to set the domain without dot by itself (its the default) ...
This commit is contained in:
parent
413710d555
commit
3b94536b99
@ -437,6 +437,11 @@
|
|||||||
{
|
{
|
||||||
$this->cookie_domain = $arr[1];
|
$this->cookie_domain = $arr[1];
|
||||||
}
|
}
|
||||||
|
if (count(explode('.',$this->cookie_domain)) <= 1)
|
||||||
|
{
|
||||||
|
// setcookie dont likes domains without dots, leaving it empty, gets setcookie to fill the domain in
|
||||||
|
$this->cookie_domain = '';
|
||||||
|
}
|
||||||
print_debug('COOKIE_DOMAIN',$this->cookie_domain,'api');
|
print_debug('COOKIE_DOMAIN',$this->cookie_domain,'api');
|
||||||
|
|
||||||
$this->set_cookie_params($this->cookie_domain); // for php4 sessions necessary
|
$this->set_cookie_params($this->cookie_domain); // for php4 sessions necessary
|
||||||
|
Loading…
x
Reference in New Issue
Block a user