473,385 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Simple cookie question

Hi,

if i try to set a cookie but the user has cookies disabled does this resolve
in an error?

if so how to prevend it?

thanks
Jul 16 '05 #1
2 1892
On Thu, 14 Aug 2003 15:36:33 GMT in
<message-id:50******************@afrodite.telenet-ops.be>
"The Lone Wolf" <jc*************@pandora.be> wrote:
Hi,

if i try to set a cookie but the user has cookies disabled does this
resolve in an error?

if so how to prevend it?

thanks

Shouldn't do.. I've never come across this.

Are you experiencing an error? and if so, what does the error report? It
may be something unrelated.. but noen of us can tell (well, I failed my
mind-reading classes anyway ;) ).

The only "error" that _should_ occur, is that if you rely on that
cookie, then something will fail if it's not present, if an _actual_
error occurs, then I suspect it's something within your actual code, not
the cookie setting itself =)
HTH.

Regards,

Ian
--
Ian.H [Design & Development]
digiServ Network - Web solutions
www.digiserv.net | irc.digiserv.net | forum.digiserv.net
Programming, Web design, development & hosting.
Jul 16 '05 #2
"The Lone Wolf" <jc*************@pandora.be> wrote in message
news:50******************@afrodite.telenet-ops.be...
if i try to set a cookie but the user has cookies disabled does this resolve in an error?


no if http client does not accept cookie there is no error indication, nor
any kind of information weathe the cookie has been accepted or not. Only
when you serve another page to him you can find out if cookie is present or
not.

Also there is no way to "persuade" the client to accept the cookie if he
does not want to.

rush
--
http://www.templatetamer.com/

Jul 16 '05 #3

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

Similar topics

1
by: wasian_god | last post by:
yea im knew to python, and i kno this is a very simple question. im trying to make a shell dat first says I want a cookie. Then it waits for the user to input the word cookie. while cookie is not...
1
by: mark leeds | last post by:
i am not a javasript programmer by any stretch but i have been writing a javascript programmer for a friend that does the following : 1) prompts the user for first name, middle name and last...
4
by: Ivan Demkovitch | last post by:
Hi! From what I understand cookies could be persisted or in-memory. I need to set second one... This code: Response.Cookies.Value = Server.UrlEncode(phpC); Response.Cookies.Path = "/";...
1
by: Jeff | last post by:
When is the value of an authentication cookie sent from the browser to the server - when the value is read from the Cookies collection? Or, is it possible that the Cookies collection is populated...
1
by: Shapper | last post by:
Hello, I need to know how to do 2 things: 1. CREATE a NEW cookie with 2 values: "password" and "user". 2. APPEND 2 new values to an ALLREADY EXISTING cookie. I created a code which is...
1
by: Joe | last post by:
Hi, I’m creating a cookie named “tick” that should expire after 1 day when user logs in. TheDomain = ".www.test.com" ThePath = "/dir1/subdir" Response.Cookies("tick")("ID") =...
0
by: Alan Silver | last post by:
Hello, I am having a problem setting and resetting cookies. I'm sure I just doing something really stupid as this is such a basic issue, but I can find any answer. Please can someone help me? ...
6
by: alex.kemsley | last post by:
Hi guys, I am trying to write a simple script in vain. I need it to first check to see if the cookie exists then if not write one with two variable var ref = document.referrer var page =...
17
by: Chris M. Thomasson | last post by:
I use the following technique in all of my C++ projects; here is the example code with error checking omitted for brevity: _________________________________________________________________ /*...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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,...

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.