I couldn't agree more and I wouldn't be using cookies unless I absolutely had to and it wasn't essential that it worked for all my users. It's actually for users to choose between two different colour schemes on my site and have their choice used on subsequent visits so cookies are the only option.
Cheers Nigel > -----Original Message----- > From: R. Joseph Newton [mailto:[EMAIL PROTECTED] > Sent: 27 February 2003 23:34 > To: Nigel Peck - MIS Web Design > Cc: CGI List; [EMAIL PROTECTED] > Subject: Re: Cookies, CGI > > > Nigel Peck - MIS Web Design wrote: > > > I'm trying to set a cookie and have it returned to the script before the > > user has to visit another page. > > > > I'm currently doing it like this: > > > > Original Cookie already set > > User request -> Script returns Set-cookie and Refresh to second script > > Second script called with original cookie, not new one > > User Request -> New cookie used > > > > I want the second script to be called with the new cookie. I've > also tried > > this: > > > > Original Cookie already set > > User request -> Script returns Set-cookie and Refresh to refresh script > > Refresh script returns refresh to Second script > > Second script called with original cookie, not new one > > User Request -> New cookie sent > > > > Shouldn't the browser create a new http request and send the > current cookies > > when performing a refresh? > > > > Any light on the matter appreciated. > > > > Thanks > > Nigel > > What are you using the cookies for? There are usually better > ways, that require much less reliance on the internals of the > browser, and incur much less visitor resentment/contempt. The > simplest, in my view, is to simply insert a hidden field into the > form that recalls the script. One that I often use is: > <input type=hidden name="Stage" value="Initiation"> > and of course, you would add others at any given stage for the > information relevant to the stage of the process involved. The > advantage is that form fields are very standard HTML, and do not > screw with the user's file system. This makes them much more welcome. > > Joseph > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]