note 43085 added to function.setcookie

From: Date: Wed, 09 Jun 2004 10:36:10 +0000
Subject: note 43085 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-70607@lists.php.net to get a copy of this message
If the user has cookies turned off (you can check for this by setting a cookie and then redirecting to PHP_SELF?seen=1, for example), you can make a crude intimidation with WWW-Authenticate. Ask the user to enter any username or password, and if the username is not already taken, you can use the data sent by the browser on each page request as a crude form of session management (probably with the aid of databases), where the user name and password contribute to the SID. Hope this helps ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43085 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43085&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43085&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70607) next »