Webtop Return Without Reauthentication
Published Mar 07, 2017
Version 1.0Was this article helpful?
Graham,
session.policy.result.start_uri
variable contains the webtop URL used after authentication. you can use it instead of recreating it!
this code also include multi-domain support.
when HTTP_REQUEST {
if { ( [set MRHSession_cookie [HTTP::cookie value "MRHSession"]] ne "" ) and ( [ACCESS::session exists -state_allow $MRHSession_cookie] ) } then {
if { [HTTP::uri] equals "/" && ([set start_uri [ACCESS::session data get -sid $MRHSession_cookie "session.policy.result.start_uri"]] ne "")} {
if {![PROFILE::access domain_mode] || [URI::host [PROFILE::access primary_auth_service]] equals [HTTP::host]} {
HTTP::redirect $start_uri
}
}
}
}