note 23712 added to function.setcookie
| From: | tagg_maiwald at yahoo dot no dot spam dot com | Date: | Thu, 25 Jul 2002 16:40:17 +0000 |
| Subject: | note 23712 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33555@lists.php.net to get a copy of this message | ||
Until M$ fixes IIS, there is a nicer work around than prefixing all your pages with 'nph-'
and dealing with that headache or setting cookies via javascript: 1) hidden form fields or 2) GET.
1: This means converting all the session links you can into form fields, and including a hidden
input tag like:
name="iis302fault" value="cookiedata"
2: This is "ugly" and would require appending the data onto the end of hyperlinks like
?iis302fault=cookie%20data
If method 2 is used, the cookie data needs to be CGI encoded.
Preferably, only a session handle (256-bits -- roughly 40 printable characters -- or larger) would
be used with either work around, and the real data would be maintained in a temp file or database
server side.
If the scripts are installed on mixed HTTP servers (as in IIS and non-IIS), you can check
SERVER_SOFTWARE and SERVER_SIGNATURE to determine which HTTP Server the script is installed, then
branch to the optimal cookie handling routines.
--
http://www.php.net/manual/en/function.setcookie.php
http://master.php.net/manage/user-notes.php?action=edit+23712
http://master.php.net/manage/user-notes.php?action=delete+23712
http://master.php.net/manage/user-notes.php?action=reject+23712