Forum Discussion
Rusty_Hale_8009
Nimbostratus
Apr 26, 2005Grab cookie contents and insert it as another.
I want to grab the contents of a cookie (from an http post) and insert that value into a new cookie with a different name. This is what I have so far that will not pass syntax:
when HT...
Apr 26, 2005
The usage for HTTP::cookie insert is the following:
HTTP::cookie insert “name” “value” [“path” ] [“domain” ][“version” <0 | 1 | 2>]
So, for your example, you need to add the "name" and "value" arguments like this:
HTTP::cookie insert name auth_user value $auth_user
This should get you past the syntax error, but you'll still need to validate whether the value of $auth_user is as expected.
-Joe
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