asp.net mvc - Login and logout via SignalR -


I have this signal R / MVC web application that I am making.

I currently login and login the function using logout Ajax calls.

I have to make those transits instead of the signalar. Is this possible? I understand how the ATH cookie is being handled.

Currently my admin job does this

  [HTTP post] Public functions login () {var alias = request. Param ["nickname"]; Var password = request Perm ["password"]; // [some database stuff ...] form attestation.SetAuthCookie (AgencyMember.e. ToString (), true); }  

To try this, I have set up my logout function in my hub:

  public class Proto1: Hub {[Authorized (Needless = false)] Public string logout () {FormsAuthentication.SignOut (); Return "OK"; }  

This works, when I debug, I do not have "feedback in this context."

Thank you!

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -