List Info

Thread: note 74231 added to function.setcookie




note 74231 added to function.setcookie
user name
2007-03-30 15:08:43
'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'] : '');
?>
----
Server IP: 195.136.184.34
Probable Submitter: 83.7.246.247
----
Manual Page -- h
ttp://www.php.net/manual/en/function.setcookie.php
Edit        -- https://master
.php.net/note/edit/74231
Del: integrated  -- h
ttps://master.php.net/note/delete/74231/integrated
Del: useless     -- http
s://master.php.net/note/delete/74231/useless
Del: bad code    -- htt
ps://master.php.net/note/delete/74231/bad+code
Del: spam        -- https:/
/master.php.net/note/delete/74231/spam
Del: non-english -- 
https://master.php.net/note/delete/74231/non-english
Del: in docs     -- http
s://master.php.net/note/delete/74231/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/74231
Reject      -- https://mast
er.php.net/note/reject/74231
Search      -- https://
master.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )