[users@httpd] Search and Replace in ResponseHeader

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

 



Hello Group,
I want to change a cookie path which is created by a cgi script. The script is encoded and I can't change it. The URL in which way the script is opened is rewritten, so the cookie path is wrong. I just want to change the cookie path but I could not find how to read from the header.
I need the environment Variable for response cookies.
I could also write a little hack for mod_headers to do this task but a default way would be better and I am not able to use c.


SetEnvIf Cookies ".*SessionID=(.*)" SessionID=$1
         ^^^^^ This only works with RequestHeaders
Header set Set-Cookie "SessionID=%{SessionID}e; Version=1; Path=/"
Header append Set-Cookie "Currency=EUR; Version=1; Path=/"

Greetings
   Manuel

--
HybridWorx - Puxbaumer & Blechschmidt Gbr
Manuel Blechschmidt
Crailsheimerstr. 10
12247 Berlin
Tel: 030/77208574 Handy: 0179/4644688


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[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