internet explorer - Rewrite Apache session cookie to append 'expires' attribute -


i'm using apache reverse proxy forms authentication. using sessionmaxage can set cookie expire after 24 hours. renders 'max-age' attribute cookie. unfortunately internet explorer accepts 'expires' attribute.

is there way to, example, rewrite cookie before sending client?

thanks in advance.

kind regards, kevin

yes, possible edit both request , response headers using the header directive in mod_headers

the best approach use header edit set-cookie ^(.*)$ $1;expires..... however, mod_headers can't actual expires sting (it doesn't know how produce date format), have put inside original cookie or header, grab there , put header directive. it's quite complicated, possible.


Comments