You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Di...@eurotours.at on 2005/04/08 10:42:21 UTC

[users@httpd] Delete cookie or rewrite cookie path in response

Hello list,

i have a application, grown over years, and now I have some
problems with session cookies.

The dynamic generated page set the cookie in a subpath from
the domain, but I need it at root.

The header look like:

HTTP/1.x 200 OK
Date: Thu, 07 Apr 2005 12:21:41 GMT
Server: Apache/2.0.53 (Win32) DAV/2 mod_ssl/2.0.53 OpenSSL/0.9.7d
mod_jk/1.2.9-beta-1 mod_watch/4.3
Set-Cookie: JSESSIONID=911DA7445D70BC0BBCB2E3359A4B.vm2; Path=/business
Content-Length: 1548
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html;charset=ISO-8859-1


now I want delete the '; Path=/business' part from the
Set-Cookie header.

Or:
I set 2 cookies, one through the app server with the
path and one manually by me without path.
In this situation it would be helpful, when I can delete the
SetCookie header with the path inside.

I read the docs but I think only mod_headers can do this, but
for this I need SetEnvIf but this can only use the request
part but in my case I need the response part for the SetEnvIf
value.


regards Dietmar



---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org