Forum Discussion
Robert_47833
Feb 15, 2015Altostratus
cookie set in HTTP::respond 302 ,but I need to set expires as 7 days for this cookie
when HTTP_REQUEST { set cookie [format "%s=%s; path=/;" cookeiname cookievalue] HTTP::respond 302 Location "https://[HTTP::host]/xyz" "Set-Cookie" $cookie }
I need to set this cookie's expire time as 7 days ,it is around 604800seconds
how to achieve this?
It seems I can't modify this in HTTP::reponse since this reponse is initiated from LTM,and it is not evaluated in HTTP::reponse .
Try "Max-age=604800"
set cookie [format "%s=%s; Max-Age=604800; path=/; domain=%s" $ckname $ckvalue ".domain.org"]
- kunjan_118660Cumulonimbus
Try "Max-age=604800"
set cookie [format "%s=%s; Max-Age=604800; path=/; domain=%s" $ckname $ckvalue ".domain.org"]
- Robert_47833AltostratusIt works perfect you rock
- kunjanNimbostratus
Try "Max-age=604800"
set cookie [format "%s=%s; Max-Age=604800; path=/; domain=%s" $ckname $ckvalue ".domain.org"]
- Robert_47833AltostratusIt works perfect you rock
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