Cross-site scripting, man-in-the-middle attack, cross site request forgery are the types of attacks involve cookies and the malicious actions like forging, reusing or accessing the cookies. It is required that the developers can use to reduce the risk of attackers accessing, forging, reusing the values of the cookies with sensitive…