Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Force a cookie to turn on

Hi

Can I force a cookie to turn on in a browser that turn their cookie off.
If yes, how do I do this? I need this cause the project I am involved in
require that every browser to have their cookie turn on. It is a must.

And also how do I check whether a browser has cookie in it in the first place?

Hope you guys can help me out here!

rgds,
Saiful
[395 byte] By [Saiful] at [2007-11-9 15:36:19]
# 1 Re: Force a cookie to turn on
Saiful:

I doubt that you are going to be able to get a browser to accept cookies if
the user has that disabled... This is a security setting within the browser
to prevent "tampering" by unethical webmasters.

If you CANNOT function without cookies, I recommend that you set a cookie
and request it immediately. If you get a negative response, you will know
that the user is NOT accepting cookies and you can exclude them from your
site...(if that is your wish.)

I, personally, know of VERY few sites that NEED cookies enabled in order to
function. Perhaps, if you could let us know what you would want to achieve,
we could suggest a way of achieving your goals without requiring cookies.

I am actually contemplating a site that would use cookies to store financial
information, but if cookies were disabled, that information would just need
to be reentered if recalculation were deemed necessary. The nice thing
about a cookie is that it IS stored on the CLIENT computer, but there are
almost always, many ways of achieving the same goal.

Just a thought...

--Russ

--
Saiful <md-saifulamri_omar@hp.com> wrote in message
news:39728350$1@news.dev-archive.com...
>
> Hi
>
> Can I force a cookie to turn on in a browser that turn their cookie off.
> If yes, how do I do this? I need this cause the project I am involved in
> require that every browser to have their cookie turn on. It is a must.
>
> And also how do I check whether a browser has cookie in it in the first
place?
>
> Hope you guys can help me out here!
>
> rgds,
> Saiful
>
>
Russ Wickstrom at 2007-11-11 23:40:59 >