asp.net - Does Forms Authentication work with Web Load Balancers? -


I am working on a web application which is using form authentication.

  & lt; Authentication mode = "form" & gt; & Lt; Forms slidingExpiration = "true" loginUrl = "~ / User.aspx / LogOn" timeout = "15" name = "authToken" /> & Lt; / Authentication & gt;  

When I log in, I see this cookie set in my cookie:

The question is when will I put this website into a balanced model loaded? Is ASP.Net Session Cookie Setting? I have not done it clearly in the code, so I think it is behind some kind of scenes in ASP.NET.

In addition, if the session cookie is determined by Web server A, then I believe that Web server BB can not recognize it and consider it as an invalid session if this is the case , So I probably do not want to use it, right?

You must keep the key of the machine the same and the name should be the same as both machines ... if it did If you go then you should not have any problem load balancing with form ath.

  & lt; Authentication mode = "form" & gt; & Lt; Forms loginUrl = "~ / login / index" defaultUrl = "~ /" name = ".myportal" protection = "all" sliding aspiration = "true" timeout = "20" path = "/" requireSSL = "false" & gt; ; & Lt; / Forms & gt; & Lt; / Authentication & gt; & Lt; Machine validation = "534766AC57A2A2F6A71E6F0757A6DFF55526F7D30A467A5CDE102D0B50E0B58D613C12E27E7E778D137058E" decryption = "7059303602C4B0B3459A20F9CB631" decryption = "auto" verification = "SHA1" />  

Sessions can be a bit more complex. You can store ASP.Net session status in the database or use a shared session provider to make it available for sharing equilibrium.

Here's a good article to store session status in DB:


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -