how set in header don't check ssl php code example
Example 1: cookie are not set in php
setcookie('username',$username,time()+60*60*24*365);
// 'Force' the cookie to exists
$_COOKIE['username'] = $username;
Example 2: Javascript check for hash in URL
if (location.href.indexOf("#") != -1) {
//current url has a #hash in it
}