Forum Discussion
SSHSSH_97332
Nov 16, 2012Nimbostratus
Persistence IRule Logic
for the below Irule , i tried to understand its logic , but after i understood i feel it has something wrong :
SSHSSH_97332
Nov 16, 2012Nimbostratus
Irule Cookie_IP_Persist {
when HTTP_RESPONSE {
set SessionId [HTTP::cookie ASP.NET_SessionId]:[IP::client_addr]
if { [HTTP::cookie ASP.NET_SessionId] != "" }{ persist add uie $SessionId 1800 }
}
when HTTP_REQUEST {
set SessionId [HTTP::cookie ASP.NET_SessionId]:[IP::client_addr]
if { [HTTP::cookie ASP.NET_SessionId] != "" }{ persist uie $SessionId 1800 }
}
}
if { [HTTP::cookie ASP.NET_SessionId] != "" }{ persist add uie $SessionId 1800 }
>>> this checks if Cookie named "ASP.NET_SessionId" has value not empty , it adds persistence record using IP & Cookie
if { [HTTP::cookie ASP.NET_SessionId] != "" }{ persist uie $SessionId 1800 }
>>> thsi checks if if Cookie named "ASP.NET_SessionId" has value not empty , it persists based on SessionId value , but i think here we shouldnot put 1800 ( time out ) , am i right ?
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