473,473 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Does Forms Authentication require cookies?

I am creating a website that uses Forms Authentication. From what I have
read, FA uses cookies to store the authentication ticket once logged in. My
customer would also like this site to not require cookies. Does FA require
the use of cookies or can I use some other mechanism when I set the system
to use cookieless sessions?
Apr 11 '06 #1
4 1232
You could use a session variable instead? Redirect the user to the log
on page when the variable is not set. On valid logon set the sesssion
varriable.

When you pages load just check for the variable, rather than cookies.

Apr 11 '06 #2
in web.config you set cookieless attribute to "true"/

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:Ok**************@TK2MSFTNGP05.phx.gbl...
I am creating a website that uses Forms Authentication. From what I have
read, FA uses cookies to store the authentication ticket once logged in.
My customer would also like this site to not require cookies. Does FA
require the use of cookies or can I use some other mechanism when I set the
system to use cookieless sessions?

Apr 11 '06 #3
The direct answer to your question is if you want to use the FA built in
system, then a cookie is required. As others have mentioned you can work
around it by using a session variable, but that isn't really using FA.

You would have to make sure all your pages inherit from a base class to
where you can check your session var, or put code in each page (yuck), or
write your own http handler to that could do the check. Of course, none of
these methods are using FA.

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:Ok**************@TK2MSFTNGP05.phx.gbl...
I am creating a website that uses Forms Authentication. From what I have
read, FA uses cookies to store the authentication ticket once logged in.
My customer would also like this site to not require cookies. Does FA
require the use of cookies or can I use some other mechanism when I set the
system to use cookieless sessions?

Apr 12 '06 #4
Sessions use cookies as well to track the user, so this still doesn't meet
the requirement.

ASP.NET 2.0 supports cookieless FormsAuthentication, and in fact it can AutoDetect
user-by-user if they have disabled cookies.

-Brock
http://staff.develop.com/ballen

You could use a session variable instead? Redirect the user to the log
on page when the variable is not set. On valid logon set the sesssion
varriable.

When you pages load just check for the variable, rather than cookies.

Apr 12 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be...
1
by: Joey Powell | last post by:
On my asp.net application, suddenly the forms authentication cookies for all clients have quit expiring. This results in users being able to access the site from day to day without having to log...
2
by: Vaibhav Gadodia | last post by:
Hello, I am trying to build an application which has forms authnetication enabled. I have a non-persistent authentication cookie which is exactly what i want. The problem is when i use two...
4
by: =?Utf-8?B?R3V1czEyMw==?= | last post by:
Hi, I created a web site on a remote server. To logon the user must enter a user id and password. The site is uses Forms Authentication. The web config file looks as follows: ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.