Webtop Return Without Reauthentication

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 :

        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"
Published Jan 25, 2017
Version 1.0

Was this article helpful?

No CommentsBe the first to comment