I am developing a system where there is a need for two types of users, the client, which will only access the frontend , and the administrator associated with backoffice . I need these users to be authenticated in different "cookies", since they are part of different areas.
I've been seeing about FormsAuthentication.SetAuthCookie
, but it seems like there's no way to assign a different ID to the authentication cookie for this function.
Could you give me an idea of where to start?
Note: I'm looking for a method that I can keep separate sessions without the need to use Roles to maintain access to the frontend and backoffice panel associated with your user type. Because I have two forms of authentication (one for the client and one for the administrator) and separate by Roles would be an "obstacle", in addition, it will probably be common for an administrator to also have a user account and vice -versa, and want to authenticate in both at the same time. Therefore keeping separate endorsements will provide more flexibility in these cases.