Web Hosting Talk







View Full Version : Accessing Lynx Cookies!!


EXOWorks
12-01-2002, 06:21 AM
Hello,

I made a script, which uses cookies, but when i access it with Lynx browser in Linux, it doesn't works.

First i tried to used setcookie() on the page itself it needs cookie, and tried to print out. But that didn't worked, maybe because it can't set cookies and print them out at the same time ?

But i also tried to access it with other page, and that was even not able to get values of the cookies.

It stores the cookies path as file.php?user (as i come to that page using that).

Any idea ? :confused:

wakkow
12-01-2002, 06:15 PM
Does it work with any non-lynx browsers?

MarkIL
12-01-2002, 06:32 PM
Try something like this...


ob_start();
if (!isset($_COOKIE['testcookie']))
{
setcookie('tescookie','abcd');
header("Location: " . $_SERVER['SCRIPT_URI']);
die;
}

print_r($_COOKIE);
ob_end_flush();

MDJ2000
12-03-2002, 12:50 PM
I would first make sure it works properly with other browsers. If it does, then I would check the lynx.cfg file and check the cookie settings, as there are quite a few.