Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

How to add role to user after logging in.

$
0
0

Am using forms authentication to sign in users which works very well, now I want certain users to access some folders basing on their roles. But I dont know how to add  roles to users after i have authenticated them.  I have tried some tutorials but all in vain. This is my how I authenticate users.

FormsAuthentication.SetAuthCookie(txtusername.Text, false);
Response.Redirect("~/Admin/admin.aspx");


Please help.


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>