Forum Discussion
Ken_Chan_95249
Nimbostratus
Jun 27, 2008HTTP::cookie problem
Hi all,
I have written the following code but I find that after I have insert the cookie in HTTP_Request event , it don't appear in the HTTP_Response event ,
when HTTP_RESPONSE {
set ip_ca [IP::client_addr]
if {not [HTTP::cookie exists "new"]}{
HTTP::cookie insert name "new" value "$ip_ca" path "/" domain ".domain.com"}
}
when HTTP_REQUEST {
set ip_ca [IP::client_addr]
if {not [HTTP::cookie exists "new"]}{
HTTP::cookie insert name "new" value "$ip_ca" path "/" domain ".domain.com"}
}
As I know , HTTP_Request should occur first but I don't know why when I try to log in both event, it shows me that both cookie insert are running each time and there is no value for the cookie "new" int he HTTP RESPONSE ..
Please give me some suggestion .. thx
Ken
1 Reply
- AndrewM_4835
Nimbostratus
What would you expect to see in the response?
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