cancel
Showing results for 
Search instead for 
Did you mean: 
Graham_Alderso1
F5 Employee
F5 Employee

Problem this snippet solves:

By default if you are assigned a webtop, then later browse to the same virtual server with "/" as your URI it will terminate your session and have you relogin to get to the webtop. The most common cause is a sequence like this:

  1. User logs in to the webtop
  2. User browses away
  3. User tries to return to the webtop by clicking their browser favorite
  4. APM terminates existing session and reauthenticates user, then redirects to webtop

Some environments would prefer to instead keep the existing session alive without reauthentication and redirect the user to the proper webtop. This iRule enables the above behavior.

How to use this snippet:

Apply this iRule to the virtual server hosting the webtop.

This iRule is hardcoded for full_webtop type. You can alter this if needed.

Code :

when HTTP_REQUEST {
        if {
            ( [HTTP::cookie exists MRHSession] ) &&
            ( [HTTP::uri] equals "/" ) &&
            ( [ACCESS::session exists -state_allow [HTTP::cookie value MRHSession]] )
        } then {
            HTTP::redirect "/vdesk/webtop.eui?webtop=[ACCESS::session data get "session.assigned.webtop"]&webtop_type=webtop_full"
        }
    }
Version history
Last update:
‎25-Jan-2017 11:48
Updated by:
Contributors