As you can see today many of websites and web application need authentication for using that service. you can create your own such web service which authenticates and creates new user using any database language.But what happens sometimes by mistakes you may make some mistakes which may make a security flaw to your website. To avoid it you can use Membership schema provided by asp.net.so that errors to be made by you becomes zero.
So lets start.
1.Configuring Your Web Application. If you are using visual studio 2008 when you create new website web.config file is automatically created else create a new web.config file in your project. Now in Menubar go to ASP.NET configuration.select the security tab,select authentication type link.Then you will see two options. a)From Internet. b)From Local Network.
Select "From Internet" and press done. save all.
2.creating Webpages and coding.
The Authentication Code is like this
if (Membership.ValidateUser(Login1.UserName, Login1.Password)) { FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1, Login1.UserName, DateTime.Now, DateTime.Now.AddMinutes(50), Login1.RememberMeSet, "demo"); string hashticket = FormsAuthentication.Encrypt(ticket);
HttpCookie cookie = new HttpCookie(FormsAuthentication.FormsCookieName, hashticket); Response.Cookies.Add(cookie);
string returnUrl = Request.QueryString["ReturnUrl"]; if (returnUrl == null) returnUrl = "~/Default.aspx";
Response.Redirect(returnUrl); }
Benifits of this method:Less Coding,More inbuilt Security Features.
AttachmentsAuthenticaiondemo (688-10031-Authenticationdemo.zip)
|
Author: ashok | Member Level: Bronze | Revenue Score:  |
send ur documentation to my id: yashokreddy_4u@yahoo.co.in
|
Author: basinth | Member Level: Bronze | Revenue Score:  |
hi kunal..cud u send full documentation to basinth@rediffmail.com
|
Author: cheetu | Member Level: Bronze | Revenue Score:   |
hi.... plz end this project to my email bcoz i hav to do my final year project... my email id is-->mailto_hasi@yahoo.com..send as soon as possible
|
Author: rahul shah | Member Level: Bronze | Revenue Score:  |
hi please send me the proj details so i can use some help from it thanks.
|
Author: rahul shah | Member Level: Bronze | Revenue Score:  |
srry my eamil is rahul.shah.4u@gmail.com
|
Author: rahul shah | Member Level: Bronze | Revenue Score:  |
hi please send me the proj details so i can use some help from it thanks.
|
Author: jazib hussnain | Member Level: Bronze | Revenue Score:   |
hi please send me the proj documentation so i can use some help from it.ma Email is jazib_hussnainbutt@hotmail.com (thanks)
|
Author: Kunal Gupta | Member Level: Bronze | Revenue Score:  |
thanks
|
Author: Phani Lalitha Sombhotla | Member Level: Bronze | Revenue Score:    |
Hi, You have done a great job in doing this project... Nice work... Can you send me the documenation and files regarding this project.It will be helpful for me..Plz... My mailid lalithasombhotla@gmail.com
Thanks Lalitha
|
Author: biplab kumar dansena | Member Level: Bronze | Revenue Score:  |
hi...pls send me this projects all documents..my id is: biplabdansena@gmail.com
|
Author: vishram | Member Level: Bronze | Revenue Score:  |
Can u send me your source code i would greatly appreciate it svc316@yahoo.com
|
Author: vipin | Member Level: Bronze | Revenue Score:  |
can u plz send me suggestion of my this task...plz find my attach ment
project.doc |
Author: Garima | Member Level: Silver | Revenue Score:  |
hi Please mail me the details of ur project. My id :-garimaa.agarwal@yahoo.in
|
Author: siva | Member Level: Gold | Revenue Score:   |
Hi, Its really nice. I would like learn such type of things.
It will be greatful for me to send the files.
Thanks Rakesh, Siva Sreenath
|
Author: siva | Member Level: Gold | Revenue Score:   |
Hi, Its really nice. I would like learn such type of things.
It will be greatful for me to send the files.
Thanks Siva Sreenath
|