Detect the "/vdesk/hangup.php3" uri SharePoint

Hello,

I have a SharePoint application behind a F5 APM. All works more or less right but there are a lot of people who has problems when they try to login. Instead of the form with username/password they get redirected to /vdesk/hangup.php3.

I think this is a problem due to the browser cookies and closing the browser solves this problem but I would like to don’t show this page to the users.

What I finally want to achieve is detect the uri “/vdesk/hangup.php3” and change it for the login main page.

Do you know a way to do this?

Thanks in advantage

Hello Sergio,

you can use this following irule:

when CLIENT_ACCEPTED {
ACCESS::restrict_irule_events disable
}

    when HTTP_REQUEST {

    if { [HTTP::uri] equals "/vdesk/hangup.php3" } {
        ACCESS::session remove
        HTTP::redirect "/"
    }
    }

let me now what is the behaviour. I am sorry I can’t test it now…

Regards

Sergio,

I deployed APM sharepoint irule several times without issue.

as Youssef answered, if the request ends with “/signout.aspx”, the user will be redirected to APM logout page after authentication :wink:

I guess the user saved logout URL in bookmark.

try to replace ACCESS_SESSION_STARTED event in sharepoint irule with this one:

when ACCESS_SESSION_STARTED {
    if {([info exists "clientless_mode"])} {
        ACCESS::session data set session.clientless $clientless_mode
    }
    if { [ info exists user_key ] } {
        ACCESS::session data set "session.user.uuid" $user_key
    }
    if { [string tolower [ACCESS::session data get session.server.landinguri]] contains "/signout.aspx" } {
        ACCESS::session data set session.server.landinguri "/"
    }
}