public IHttpResponse Logout(IHttpSession session) { if (session.IsLoggedIn()) { session.Clear(); } return(new RedirectResponse("/")); }
void Close(bool only_free)//para keep-alive { if (_is_socket) { try { WriteSocketMsg("Kill", ESocketDataType.close); } catch { } } if (stream != null) { if (!only_free) { stream.Close(); stream.Dispose(); } } if (socket != null) { if (!only_free) { socket.Close(); } socket = null; } if (send_headers != null) send_headers.Clear(); if (_req != null) { _req.Clear(); if (!only_free) _req.Dispose(); } httpCookie.Clear(); if (ses != null) ses.Clear(); lock (pushes) { if (pushes.Count > 0) { if (_Server != null) foreach (string s in pushes) _Server.PushDel(this, s); pushes.Clear(); } } }
public IHttpResponse Logout(IHttpSession session) { session.Clear(); return(new RedirectResponse("/login")); }
public FubuContinuation Logoff(LogoffRequestModel model) { _session.Clear(); return(FubuContinuation.RedirectTo(new HomeInputModel())); }
public IHttpResponse Logout(IHttpSession session) { session.Clear(); return(new RedirectResponse(UrlPaths.Home)); }