Forum Discussion
hooleylist
Sep 07, 2012Cirrostratus
It would be slightly more precise to change this:
if { [HTTP::cookie exists "OutlookSession"] } {
persist uie [HTTP::header "OutlookSession"] 3600
} else {
to:
if { [HTTP::cookie value "OutlookSession" ne ""] } {
persist uie [HTTP::cookie value "OutlookSession" 3600
} else {
HTTP::cookie value $cookie_name will return a null string if the cookie isn't set. So checking if [HTTP::cookie value "OutlookSession"] isn't null will avoid a runtime TCL error if the cookie isn't set or isn't set with a value.
Aaron