RE: [PHP] Must Have Cookies. PHP/JavaScript

2001-07-05 Thread Johnson, Kirk
On the *2nd* page request you can check for your cookie in $HTTP_COOKIE_VARS. If it is not there, cookies are disabled in the browser. Here's a kludge to make your first page the 2nd page request: just start your session on index, then META redirect to the next page; this 2nd page is where you

Re: [PHP] Must Have Cookies. PHP/JavaScript

2001-07-05 Thread JCampbell
Not to sound overly obvious, but try this. setcookie(cookieusername,$username,time()+6048000,/,,0); $cookieusername = $HTTP_COOKIE_VARS[cookieusername]; if (!$cookieusername){ echoSorry, no cookie, no page.; die(); } =- Jonathan Campbell ( [EMAIL PROTECTED] ) Mid days haze and I'm

Re: [PHP] Must Have Cookies. PHP/JavaScript

2001-07-05 Thread teo
Hi Jeff! On Thu, 05 Jul 2001, Jeff Gannaway wrote: OK, I'm working on a site that absolutely must use a cookie containing a session identifier. I know how to set a cookie through PHP, but I need to do something else too. The same page MUST identifier whether the cookie was accepted or

Re: [PHP] Must Have Cookies. PHP/JavaScript

2001-07-05 Thread Jeff Gannaway
With a good start from the folks on this list and a little JavaScript digging, I found an excellent solution to my problem that I thought I'd share: Problem: Want to set a cookie then test for it on the same page. I don't want to to do page redirection to ensure optimal search engine