note 74231 deleted from function.setcookie by cmb

From: Date: Sun, 03 Mar 2019 11:30:12 +0000
Subject: note 74231 deleted from function.setcookie by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-210301@lists.php.net to get a copy of this message
Note Submitter: Marcin Wiazowski ---- 'session.cookie_domain' should be set to empty string for all local domain names, not only for 'localhost' (but should not be empty for local IP addresses): <?php ini_set('session.cookie_domain', (strpos($_SERVER['HTTP_HOST'],'.') !== false) ? $_SERVER['HTTP_HOST'] : ''); ?>

« previous php.notes (#210301) next »