Apache 2.4 set a cookie with a value from a header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux