RE: [PHP] PHP and Cookies

2003-04-03 Thread John W. Holmes
> I have a problem with php and cookies. I use the following line of code > to set a cookie to expire in one year: > > setcookie('gsp_email',$_POST['requiredsubEmail'],time()*60*60*24*365 > ,'/','',0); > > The idea is that the cookie will sit on the client for a year, so that a > visitor only ha

RE: [PHP] PHP and cookies and/or headers

2001-02-16 Thread Paul Grant
Jeremy, I think there might be a JavaScript solution rather than a PHP solution to your problem. Depending on which link, either www.english.com or www.francais.com, the users click from www.mainurl.com you can set a cookie with JavaScript. Of course this cookie will 'remember' the user's initial

Re: [PHP] PHP and cookies and/or headers

2001-02-15 Thread Richard Lynch
In your main page: Note: I usually swap the needle/haystack and have to look them up, but you probably won't just use strstr anyway, so I didn't. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little ti

Re: [PHP] PHP and cookies and/or headers

2001-02-15 Thread Chris Lee
Ive done this, our secure server is on a differnt IP/domain name, of course I still need cookies though. All I have todo to set the SessionID ona different domainname is pass the PHPSESSID in the url to the new host, and voila I have access to the same SessionID and other session vars. give it