ASP.NET authentication design -


could please validate if authentication solution elegant , safe enough.

web.config

<authentication mode="forms"> <forms name=".aspxformsdemo" loginurl="logon.aspx" protection="all" path="/" timeout="30" /> </authentication>

<authorization> <deny users ="?" /> <allow users = "*" /> </authorization>

in logon.aspx.cs have 2 methods:

private bool validateuser(string username, string password) private void loginbutton_click(object sender, eventargs e) 

inside validateuser method doing executing sql query check if entered credentials similar database records. if credentials match want perform redirection page called privateroom.aspx using response.redirect("privateroom.aspx", true);

what guys think such design? how elegant , how secure? actually, how protect privateroom.aspx against unauthorized access?? can go http://mysite.com/privateroom.aspx , open page.

thank answers!!!

is not safe because not use requiressl="true" , cookie can travel unsecured.

relative: can hacker steal cookie user , login name on web site?


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -