c# - Logout not redirecting to Login Page MVC -


i trying navigate login page(sso) facing challenges.

i dont have login page/controller can navigate on logout need redirect third party page(sso) on logout.

in view :(_layout.cshtml)

<a href="@url.action("logout", "home")"> <i class="fa fa-sign-out"></i> <span data-i18n="log out">log out</span> </a> 

in homecontroller.cs

public actionresult logout() {   // delete user details cache.   httpcontext.session.abandon();   return redirect(configurationmanager.appsettings["logouturl"]); } 

in web.config:

<add key ="logouturl" value="https://ssointrad.dev.ipc.us.aexp.com/ssoi/request?request_type=un_logoffampsd;ssourl=https://wpdcldwa00123.abc.xxxx.com/gpatdev"/> 

now when click on logout redirects : https://wpdcldwa00123.abc.xxxx.com/gpatdev/home/logout

how resolve issue ?

thanks.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -