Mono Support Programmicaly Log out of MonoX ? (Closed)

Viewed 13089 time(s), 4 post(s), 4/12/2012 8:33:20 PM - by shawndg
4/12/2012 8:33:49 PM
1871 Reputation 252 Total posts

Hi,

I have a little control I created that does its own menu and stuff instead of the MonoX one but I cant figure out how to make it logout of MonoX.

Is there some api or something that I can use to log out ?

1
4/13/2012 6:09:09 AM
1176 Reputation 140 Total posts

Hi

use the following way

in your button click

FormsAuthentication.SignOut();

Response.Redirect(GetLoginUrl());

2
4/13/2012 6:36:01 AM
15993 Reputation 2214 Total posts

Hi,

in addition what Ramaraor suggested you may want to abandon the user session by using code similar to this:

FormsAuthentication.SignOut();
base.Page.Response.Clear();
this.Page.Response.StatusCode = 200;
HttpContext.Current.Session.Abandon();
Response.Redirect(URL);

Regards

3
4/22/2012 11:32:56 AM
1871 Reputation 252 Total posts

Works..

Thanks guys!

4
This is a demo site for MonoX. Please visit Mono Software for more info.