Forum Discussion
MDPF52_180608
Nimbostratus
May 27, 2015iRule delete cookie in HTTP REQUEST
Hello Community,
I'm facing in issue with the HTTP::respond 302 with a cookie removal. After the logout procedure i can see a blank page without any redirect, maybe the syntax is wrong. Can any...
Michael_Jenkins
Cirrostratus
May 27, 2015Have you tried adding logging to the ltm log (/var/log/ltm) to see if you ever get to the redirect? Also, if you use Fiddler (Windows) or something like the built in network monitor on Chrome or Firefox, what kind of response do you see from the page request?
when HTTP_REQUEST {
set redirect https://domainsite.com/vdesk/hangup.php3
log local0. "URI: '[HTTP::uri]'"
if { [HTTP::uri] contains "logout.xxx" } {
log local0. " Redirecting to '$redirect'"
HTTP::respond 302 Location $redirect "Set-Cookie" "ASP.NET_SessionId=;path=/; HttpOnly; domain=domainsite.com; Expires=Thu, 01-Jan-1970 00:00:00 GMT"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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