mohsinali1317
mohsinali1317

Reputation: 4425

Multiple FormsAuthenticationTicket tickets MVC

I am using FormsAuthenticationTicket in my app. What I have is two different user types, super admin and then ordinary user.

The super admin can impersonate the ordinary user. I would like to have multiple FormsAuthenticationTicket instances, can I have that? Is it possible?

Upvotes: 2

Views: 334

Answers (1)

Tushar Gupta
Tushar Gupta

Reputation: 15913

No, as far as ASP.NET Forms Authentication mechanism is concerned, there are absolutely no issues with a single instance . Users are tracked with cookies and requests are stateless. Databases also handle concurrency pretty well.

You can use forms authentication and multiple sessions. Your post seemed to say that two people using the same forms authentication account would share the same session and would cause problems. In fact, I can't understand what your point about Multiple instances of Authentication ticket was, because two users logging in won't share the same session.

Upvotes: 0

Related Questions