Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. ini_set("session.cookie_httponly", 1);
  2.  
  3. session_start();
  4. $params = session_get_cookie_params();
  5. setcookie("PHPSESSID", session_id(), 0, $params["path"], $params["domain"],
  6. true // this is the httpOnly flag you need to set
  7. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement