Forum Discussion
dipta_03_149731
Nimbostratus
Jul 15, 2015Can somebody help me understand the below Irules for Secure Cookies,
Number 1 rule for Secure Cookies:
ltm rule SPOG-Secure-Cookies {
partition SKP
when HTTP_RESPONSE {
set myValues [HTTP::cookie names]
foreach mycookies $myValues {
HTTP::cook...
Samir_Jha_52506
Noctilucent
Jul 15, 2015Hi, Find the below details. Please correct me if any thing wrong.
ltm rule SPOG-Secure-Cookies --> Name of irule
{ partition SKP when HTTP_RESPONSE --> Partision name SKP, where iRule stored
{ set myValues [HTTP::cookie names] ---> storing cookie value in "myValues" varible
foreach mycookies $myValues ---> passing 'myValues' value in mycookies one by one through loop
{ HTTP::cookie secure $mycookies enable --> enabling cookie in browser
} } }
ltm rule SPOG-Domain-Cookies-IMC.com --> Name of irule
{ partition SKP when HTTP_RESPONSE --> Partision name SKP, where iRule stored
{ log local0. "[IP::client_addr]:[TCP::client_port]: Pre Set-Cookies: [HTTP::header values Set-Cookie]" --> log
message "client IP:port": Header cookie values
Check if the persistence cookie exists in the response
if {[HTTP::cookie exists "PD-L-SESSION"]} ---> Checks cookie value
{ set the domain attribute on the persistence cookie
HTTP::cookie domain "PD-L-SESSION" ".ironmountainconnect.com" --> adding cookie value in
"ironmountainconnect.com"
log local0. "[IP::client_addr]:[TCP::client_port]: Modified domain on PD-L-SESSION" } --> log message "client
IP:port" Modified domain on PD-L-SESSION"
if {[HTTP::cookie exists "PD-L-LAT"]} ---> Checks cookie value
{ set the domain attribute on the persistence cookie
HTTP::cookie domain "PD-L-LAT" ".ironmountainconnect.com" --> adding cookie value in "ironmountainconnect.com"
log local0. "[IP::client_addr]:[TCP::client_port]: Modified domain on PD-L-LAT" } --> log message "client
IP:port":Modified domain on PD-L-LAT"
log local0. "[IP::client_addr]:[TCP::client_port]: Post Set-Cookies: [HTTP::header values Set-Cookie]" } } -->
log message": Post Set-Cookies: PD-L-LAT"
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