Forum Discussion
Dendy_21737
Jun 17, 2011Nimbostratus
redirection and cookies
Please help with this if you can... any suggestions about solving this issue are welcomed. Thank you for your time.
If a user from x ip address(es) connects to http://almstag...
hooleylist
Jun 17, 2011Cirrostratus
Hi Dendy,
If you want to set a cookie in a redirect you can use HTTP::respond:
http://devcentral.f5.com/wiki/default.aspx/iRules/http__respond
when HTTP_REQUEST {
set ckname "app"
set ckvalue "893"
set cookie [format "%s=%s; path=/; domain=%s" $ckname $ckvalue ".domain.org"]
HTTP::respond 302 Location "http://www.domain.org" "Set-Cookie" $cookie
}
Aaron
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