func SignOut(ctx *context.Context) {
	if ctx.User != nil {
		eventsource.GetManager().SendMessageBlocking(ctx.User.ID, &eventsource.Event{
			Name: "logout",
			Data: ctx.Session.ID(),
		})
	}
	HandleSignOut(ctx)
	ctx.Redirect(setting.AppSubURL + "/")
}
// SignOut sign out from login status
SignOut sign out from login status
// SignOut sign out from login status
func SignOut(ctx *context.Context) {
	if ctx.User != nil {
		eventsource.GetManager().SendMessageBlocking(ctx.User.ID, &eventsource.Event{
			Name: "logout",
			Data: ctx.Session.ID(),
		})
	}
	HandleSignOut(ctx)
	ctx.Redirect(setting.AppSubURL + "/")
}
func SignOut ( ctx * context . Context ) { if ctx . User != nil { eventsource . GetManager ( ) . SendMessageBlocking ( ctx . User . ID , & eventsource . Event { Name : " " , Data : ctx . Session . ID ( ) , } ) } HandleSignOut ( ctx ) ctx . Redirect ( setting . AppSubURL + " " ) }
SignOut sign out from login status
SignOut sign out from login status