Question

Is there a way to check if the cookie is httponly in php?

Was it helpful?

Solution

Well, yes. You'll find it in the array returned by session_get_cookie_params, as long as your PHP is 5.2.0 or newer.

OTHER TIPS

I don't think that's possible, because this information is not included in the raw headers sent by the browser. In fact, it doesn't make sense to send flags like these back to the server, because they are meaningless to the server and only wastes bandwidth.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top