473,734 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Check Yes/No cookies enabled?

It is possible to check via ASP whether cookies are enabled for a person's
web browser and based on this check send him to another page which does not
support cookies (ie login?)?

Thanks
Jason
Jul 19 '05 #1
7 5571
http://www.aspfaq.com/2058

--
http://www.aspfaq.com/
(Reverse address to reply.)


<ja***@catamara nco.com> wrote in message
news:#0******** ******@TK2MSFTN GP09.phx.gbl...
It is possible to check via ASP whether cookies are enabled for a person's
web browser and based on this check send him to another page which does not support cookies (ie login?)?

Thanks
Jason

Jul 19 '05 #2
yes, just write one, redirect to another page, read it. If it's not there
they dont accept them. Just make sure not to write and read on the same
page...or you wont get an accurate result.
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
<ja***@catamara nco.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
It is possible to check via ASP whether cookies are enabled for a person's
web browser and based on this check send him to another page which does not support cookies (ie login?)?

Thanks
Jason

Jul 19 '05 #3
This seems similiar to this article which points out it the process could be
ruined by caching and the fact that it uses up server resources:

http://www.asp101.com/articles/john/...ct/default.asp

Would you advise using this approach to allow user to bypass login screen if
he is present in database?

"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:uD******** ******@TK2MSFTN GP09.phx.gbl...
yes, just write one, redirect to another page, read it. If it's not there
they dont accept them. Just make sure not to write and read on the same
page...or you wont get an accurate result.
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
<ja***@catamara nco.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
It is possible to check via ASP whether cookies are enabled for a person's web browser and based on this check send him to another page which does

not
support cookies (ie login?)?

Thanks
Jason


Jul 19 '05 #4
wrote on 05 aug 2004 in microsoft.publi c.inetserver.as p.general:
It is possible to check via ASP whether cookies are enabled for a
person's web browser and based on this check send him to another page
which does not support cookies (ie login?)?


<http://www.google.com/search?num=100& q=ASP+whether+c ookies+are+enab led>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #5
Does this solution also hold true for users whose browsers have cookies
enabled but have turned them off?

"Aaron [SQL Server MVP]" <te*****@dnartr eb.noraa> wrote in message
news:uW******** ******@TK2MSFTN GP10.phx.gbl...
http://www.aspfaq.com/2058

--
http://www.aspfaq.com/
(Reverse address to reply.)


<ja***@catamara nco.com> wrote in message
news:#0******** ******@TK2MSFTN GP09.phx.gbl...
It is possible to check via ASP whether cookies are enabled for a person's web browser and based on this check send him to another page which does

not
support cookies (ie login?)?

Thanks
Jason


Jul 19 '05 #6
Yes. It would probably take you all of 45 seconds to verify that for
yourself, though... ;-)

Remember, it is not checking a setting, it is setting a cookie and then
trying to read it! Whether they have a browser that doesn't support
cookies, or it does but they turned them off, the result will be the same,
no?

--
http://www.aspfaq.com/
(Reverse address to reply.)


<ja***@catamara nco.com> wrote in message
news:uO******** ******@tk2msftn gp13.phx.gbl...
Does this solution also hold true for users whose browsers have cookies
enabled but have turned them off?

Jul 19 '05 #7
I guess you are right...

...as usual! :)
"Aaron [SQL Server MVP]" <te*****@dnartr eb.noraa> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Yes. It would probably take you all of 45 seconds to verify that for
yourself, though... ;-)

Remember, it is not checking a setting, it is setting a cookie and then
trying to read it! Whether they have a browser that doesn't support
cookies, or it does but they turned them off, the result will be the same,
no?

--
http://www.aspfaq.com/
(Reverse address to reply.)


<ja***@catamara nco.com> wrote in message
news:uO******** ******@tk2msftn gp13.phx.gbl...
Does this solution also hold true for users whose browsers have cookies
enabled but have turned them off?


Jul 19 '05 #8

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

Similar topics

3
1307
by: Ana | last post by:
Is it possible to check by means of javascript whether cookies are enabled in the user's browser? Thanks in advance, Ana
11
6041
by: Jennifer | last post by:
Is there a way to check for to see if the user has session cookies enabled? I know how to check to see if they have cookies in general enabled, but how do you test for just session cookies? Thanks Jen
0
1268
by: Sri | last post by:
Hi I am trying to figure out how to test whether my browser cookies are enabled. I used the code from the following page http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchaspnetcookies101.as Basically, it tells me to create a cookie and test the cookie from another page. However, in IE 6.0, if I set my privacy setting to a High level so as to block all cookies, the code always returns that the...
0
541
by: dawson | last post by:
I started off by trying to use the HttpCapabilitiesBase.Cookies Property (Note: This property is new in the .NET Framework version 2.0) however it kept on returning true even when I disabled cookies in both FireFox and Internet Explorer. After a bit of googling I found that a lot of people were creating cookies, then re-reading them; obviously if they could re-read the cookie then they knew that the client's browser accepts cookies!...
2
3598
by: Chris Davoli | last post by:
How do you enable a check box in the GridView. I selected Checkbox Field in the Columns of the GridView, and the check box shows up in the Grid view, but it is disabled. How do I enable it so I can check/uncheck it. Also, what event do I use to check it for a value? Any articles out there? -- Chris Davoli
24
2471
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How can I see in javascript if a web browser accepts cookies? ----------------------------------------------------------------------- Writing a cookie, reading it back and checking if it's the same. http://www.w3schools.com/js/js_cookies.asp Additional Notes:
0
1129
by: pritaeas | last post by:
Hi, is there an easy way to check if session cookies are enabled, without using javascript and without passing a GET parameter ? Regards, Hans --
3
7788
by: =?Utf-8?B?Qkw=?= | last post by:
if (Request.Browser.Cookies) { // Cookies supported } else { // Web browser not supports cookies }
1
1794
by: cordless33 | last post by:
I want to redirect all users with cookies enabled. When someone visits my website with cookies enabled they they should get redirected somewhere else. The code i'm using now only works once. Until they delete cookies.
0
8780
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9456
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9186
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8190
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6742
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4553
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4816
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3264
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 we have to send another system
3
2182
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.