Posted on: 3/23/2015 12:07:18 PM | Views : 626

Hello everyone! Please help me - I want implement authorization on the site. I did it, but I understand that it is not safe. I want to try a standard tool 'Forms authentication' but got several problems, for example: - how get current user id ?
in my config next code
<system.web> <compilation debug="true" targetFramework="4.0"/> <authentication mode="Forms"> <forms defaultUrl="~/Home.aspx" loginUrl="~/Login.aspx" slidingExpiration="true" timeout="2880"></forms> </authentication> </system.web> on page login
<form id="form1" runat="server"> <asp:Login ID="Login1" runat="server" OnAuthenticate="ValidateUser"> </asp:Login> </form> p ...

Go to the complete details ...