You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jeff Courtade <co...@gmail.com> on 2014/10/15 15:11:02 UTC
[users@httpd] Apache 2.4 set a cookie with a value from a header
Hello,
I am using apache 2.4.6.
I am trying to set a cookie JSESSIONID: with the value of the request
header "Authorization"
so if the header Authorization=AAGEFE67YH.pa04
a cookie is created
JSESSIONID=AAGEFE67YH.pa04;Path=/
Any help would be appreciated.
Currently I have this in the configuration and it works. however i need to
grab the value of the header and use it for the value of the cookie.
SetEnvIf Authorization "12345" HAVE_Authorization
Header set ISAUTH "HELLO" env=HAVE_Authorization
Header set Set-Cookie
JSESSIONID=B3BC99DDFD2E385901B0E8E4F319723E.pa04;path=/
env=HAVE_Authorization
--
Thanks,
Jeff Courtade