Is there any problem with storing the roles in the database?
Session based user role after login
Hello everyone!
Is there a way to change the role of a user based on the session variable?
MY PROBLEM: After login i can assign a role to the user. However, after that there is a possibility in my application that the user can navigate to different subprojects. I have solved this by creating a session variable as soon as the user has activated a subproject by pressing a button. Likewise, he can deactivate the subproject via a button. But now I need different roles for a user depending on which subproject is activated.
Is there an elegant solution or should i approach it differently?
Thanks!
Just assign a different role to him, when the button is clicked. So store the specific role inside the database.
Please or to participate in this conversation.