Forum Discussion
Kevin_Stewart
Sep 09, 2018Employee
Try this:
when HTTP_REQUEST {
set uri [HTTP::uri]
set host [HTTP::host]
}
when CLIENT_ACCEPTED {
ACCESS::restrict_irule_events disable
set citrix_logout 0
}
when ACCESS_ACL_ALLOWED {
set type [ACCESS::session data get session.client.type]
if { !(${type} starts_with "citrix") } {
if { ${uri} == "/" } {
log local0. "Redirecting to /Citrix/InternalWeb/"
ACCESS::respond 302 Location "https://${host}/Citrix/InternalWeb/"
}
}
if { ${uri} contains "Logoff" } {
after 2000 { ACCESS::session remove}
set citrix_logout 1
set http_host ${host}
}
}
when HTTP_RESPONSE {
if { $citrix_logout eq 1 } {
HTTP::redirect "https://$http_host/vdesk/hangup.php3"
}
}