This is an old revision of the document!


Alternative way for Header "edit" directive on LSWS

LiteSpeed doesn't support the header “edit” directive hence the following directive won't work on LiteSpeed, which works on Apache.

Header always edit Set-Cookie (.*) "$1;HTTPOnly;Secure"

What's the equivalent solution for LiteSpeed?

For secure flag, starting from LSWS 5.4.5, LiteSpeed Web Server will automatically patch Set-Cookie with secure flag when served over HTTPS.

For other cookie settings, you may try to make changes in php.ini, for example:

session.cookie_httponly=On
  • Admin
  • Last modified: 2020/09/01 13:07
  • by Jackson Zhang