Forum Discussion
karthik_sriniva
Nimbostratus
Apr 07, 2005Setting HTTP COOkie
Hi,
I am trying to set a HTTP Cookie from AUTH_SUCCESS event and I get the following error
[command is not valid in current event context (AUTH_SUCCESS)] [HTTP::username]
...
karthik_sriniva
Nimbostratus
Apr 07, 2005Thanks for your reply. But I have one problem with your code, this block of code is not working
if {[HTTP::cookie exists $ckname]} {
HTTP::cookie decrypt $ckname $ckpass 128
if {[HTTP::cookie value $ckname] eq $ckvalue} {
actually if I try to log [HTTP::cookie exists $ckname], I get 0. but I can see the cookie being set in the browser.
Also some of the code in the forum, uses decrpt for decryption instead of decrypt
Again lack of documentation is costing value time.
Thanks for your help,
karthik
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