Monday, 16 September 2013

Dynamically change request cookie name apache

I want to dynamically replace cookie name coming from browser to Apache web server.

Solution: The below example will replace all the incoming requests that has cookie name as "SESSION" to "LUCKY.SESSION"

Edit:  httpd.conf

RequestHeader edit Cookie "SESSION" "LUCKY.SESSION"
Hint: Please include headers module to work. For ex: Uncomment "LoadModule headers_module modules/" in httpd.conf

No comments:

Post a Comment