"Notorious Sharif" <sharif.RemoveThis@nyc.rr.com> wrote
> While shouting G-UNIT, Richard L. McCulley wrote this:
> > Many of the sites that I go to today are setting cookies (or so my
> > McAfee Security Center tells me). What is the purpose of them setting
> > cookies #1?
> >
> > And secondly, as a web site developer, how can I request to set
> > cookies?
> >
> > Richard
>
> Cookies mainly are used by websites to store data used throughout the site.
> You want to set cookies? For what purpose? You can do it many ways: with
> PHP - use the function setcookie().
>
var Then=new Date()
Then.setTime(Then.getTime() + 365 * 24 * 60 * 60 * 1000)
document.cookie = "cookie1=This cookie is to ask 'Add To Favorites' only once!;expires=" +
Then.toGMTString()
javascript might be easier, you have to set a timeout for when they expire.
lots of sites using them, they often reaarange the entry screen depending if you've been there
before.
Herc<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Request for setting a cookie . . .