Solved

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

Posted on 2008-10-15
3
239 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Runtime Exceptions when trying to submit data 28 37
Turn on intranet settings 1 42
Error on link 14 40
How useful is the free version of Selenium? 3 17
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 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

19 Experts available now in Live!

Get 1:1 Help Now