note 72180 added to function.setcookie

From: Date: Fri, 05 Jan 2007 21:33:44 +0000
Subject: note 72180 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-121344@lists.php.net to get a copy of this message
If you ever find yourself in a situation where you need to overwrite a non-PHP application's session cookie, you can do that with the following line: header("Set-Cookie: SIDNAME=$overwrite; path=/; secure"); I couldn't get setcookie() to do this for all major web browsers, but manually sending the header did the trick. Note: Remove secure if you aren't mandating SSL connections. ---- Server IP: 64.71.164.2 Probable Submitter: 87.106.27.17 ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- https://master.php.net/note/edit/72180 Del: integrated -- https://master.php.net/note/delete/72180/integrated Del: useless -- https://master.php.net/note/delete/72180/useless Del: bad code -- https://master.php.net/note/delete/72180/bad+code Del: spam -- https://master.php.net/note/delete/72180/spam Del: non-english -- https://master.php.net/note/delete/72180/non-english Del: in docs -- https://master.php.net/note/delete/72180/in+docs Del: other reasons-- https://master.php.net/note/delete/72180 Reject -- https://master.php.net/note/reject/72180 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#121344) next »