Forum Discussion
anujl_5566
Nov 02, 2011Nimbostratus
Persistence Cookie iRule not working as desired
when HTTP_REQUEST {
if { [HTTP::path] equals "/api/v1/sendpinonceoff" } {
HTTP::path /sendpinonceoff
pool MM-MEPD
persist none
}
if { [HTTP::path] equals "/api/v1/verifyp...
anujl_5566
Nov 03, 2011Nimbostratus
nitass- this is what I see in curl
curl -lv http://172.19.11.73/api/v1/sendpinajax
* About to connect() to 172.19.11.73:80
* Connected to 172.19.11.73 (172.19.11.73) port 80
> GET /api/v1/sendpinajax HTTP/1.1
User-Agent: curl/7.10.6 (i386-redhat-linux-gnu) libcurl/7.10.6 OpenSSL/0.9.7a ipv6 zlib/1.1.4
Host: 172.19.11.73
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
< HTTP/1.1 404 Not Found
< Date: Thu, 03 Nov 2011 14:26:22 GMT
< Server: Apache/2.2.3 (CentOS)
< Content-Length: 293
< Connection: close
< Content-Type: text/html; charset=iso-8859-1
< Set-Cookie: MM-MEP-SENDPIN=218764204.20480.0000; path=/
404 Not Found
Not Found
The requested URL /api/v1/sendpinajax was not found on this server.
Apache/2.2.3 (CentOS) Server at 172.19.11.73 Port 80
* Closing connection 0
[aladkani@mmusbox-lx01 aladkani]$ curl -lv http://172.19.11.73/api/v1/processrefund
* About to connect() to 172.19.11.73:80
* Connected to 172.19.11.73 (172.19.11.73) port 80
> GET /api/v1/processrefund HTTP/1.1
User-Agent: curl/7.10.6 (i386-redhat-linux-gnu) libcurl/7.10.6 OpenSSL/0.9.7a ipv6 zlib/1.1.4
Host: 172.19.11.73
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
< HTTP/1.1 400 Bad Request
< Content-length: 22
< Date: Thu, 03 Nov 2011 14:26:53 GMT
* Connection 0 left intact
* Closing connection 0
This looks as desired because curl unlike browser is not keeping the session open. The problem is with browsers.
Now I was following this article to circumvent this issue,
http://support.f5.com/kb/en-us/solutions/public/9000/800/sol9815.html
So according to this KB if I use default cookie name BIgipServer, this confusion with cookie persistence while pool jumping will not happen.
BUT, i have one url for which I am doing persist none. I want to know what happens to that in this case. In short user goes to url /blah1 which has persistence gets cookie BigipServerBLAH1, and then if it goes to url /blah2, which has persist none in the profile, what happens there. I do not think persist none will make the browser drop cookies.
Also I cannot try what Kurt said, doing persist none and then cookie insert because what if the user goes back to the pool where default cookie is used. I am not sure if I am explaining my case properly here.
I really appreciate the time you guys have put in replying.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects