Set httpOnly and secure on PHPSESSID cookie in PHP

ini_set('session.cookie_httponly', 1);

more information here on the PHP docs

Leave a Comment