Solved

For an internet website is it still okay to use forms authentication with cookies?

Posted on 2008-10-15
3
240 Views
Last Modified: 2013-11-26
I am maintaining some code from a visual studio 2003 .net 1.1 application. It appears to be using Forms Authentication with cookies. Is this method of using forms authentication with cookies still a valid way of doing web page authorization and authentication? here is an example of some of the code:

                  FormsAuthentication.SignOut();
                  Request.Cookies.Clear();
0
Comment
Question by:brgdotnet
3 Comments
 
LVL 5

Expert Comment

by:varungd
ID: 22728147
Try this code...
WebConfig
 
<authentication mode="Forms">
			<forms loginUrl="~/Security/Login.aspx"
				   protection="All"
				   defaultUrl="~/Common/ePanel_Default.aspx" 
				   timeout="30"
				   />
		</authentication>
 
		<authorization>
			<deny users="?" />
		</authorization>
 
 
Button click in login page
 
FormsAuthentication.RedirectFromLoginPage(txtLoginName.Text, false);
 
 
For signout
 
 FormsAuthentication.SignOut();
 Session.Abandon();
 Request.Cookies.Clear();

Open in new window

0
 
LVL 13

Accepted Solution

by:
TechTiger007 earned 130 total points
ID: 22729376
Yes forms authentication and cookies is still a valid way of authentication over internet.

0
 
LVL 2

Author Closing Comment

by:brgdotnet
ID: 31506609
Brief
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now