Solved

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

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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

622 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