Forum Discussion
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 ?