Forum Discussion
Ted_Smith_11168
Nimbostratus
Mar 01, 2006http::response and http::redirect
Can some one explain differnce between:
HTTP::respond 302 Location "https://uitaac1.allied.nwie.net$uri" "Set-Cookie" $cookie
and doing a separate cookie insertion and redirect command?
I want to set a cookie in Site A, redirect the client to Site B without allowing client to defined pool.
Once in Site B check for the cookie that was set in site a. If cookie is present allow to defined pool, otherwise redirect back to site A to get cookie set.
ideas?
- unRuleY_95363Historic F5 AccountThe HTTP::redirect and HTTP::respond commands do not utilize the internal cookie pool that is manipulated by the HTTP::cookie command. So, do a cookie insertion will not have any effect on the HTTP::redirect or HTTP::respond. This is why you need to do the HTTP::respond 302 and include the Set-Cookie header manually. This will probably eventually be fixed.
- Ted_Smith_11168
Nimbostratus
Sorry If I am being dense about this but I am a little confused... (nothing new for me!) - Colin_Walker_12Historic F5 AccountI'm pretty sure Unruley's saying that you can't do a cookie insert and then use an HTTP::redirect, since the HTTP::redrect won't pass along the cookie.
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