Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Store authentication status in a cookies

$secret_word = 'if i ate spinach';
if (pc_validate($_REQUEST['username'],$_REQUEST['password'])) {
    setcookie('login', 
              $_REQUEST['username'].','.md5($_REQUEST['username'].$secret_word));
}
Source by docstore.mik.ua #
 
PREVIOUS NEXT
Tagged: #Store #authentication #status #cookies
ADD COMMENT
Topic
Name
7+1 =