Solved

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

Posted on 2008-10-15
3
242 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

710 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