Hi, i’m trying to set the session to http only, so I’ve edited the php.ini in the following way, i’m not using https at the moment.
session.cookie_httponly = 1
Now the problem is that i can’t login anymore into the php application. Can anybody explain why?
Many thanks for your help
What application? I don’t see any code. We don’t have a magic crystal ball.
benanamen:
I don’t see any code.
Would there be any?
http://php.net/manual/en/session.configuration.php#ini.session.cookie-httponly
session.cookie_httponly boolean
Marks the cookie as accessible only through the HTTP protocol. This means that the cookie won’t be accessible by scripting languages, such as JavaScript.
Would there be any?
Yes, OP said he cant login to his application. Cant have an application without code.
1 Like
Hi thanks for your answer. I found the problem, I just needed to restart the server after I edited the php.ini file
Thanks again
1 Like
system
Closed
February 23, 2018, 2:04pm
6
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.