Page 1 of 2

cookies setup

Posted: Fri Aug 20, 2004 1:22 am
by murthy
how to-setup the cookies in php.

Basic problem is : cookies are not set-up in few browsers.


Please respond as early as possible....


:?:
Kirshna

Posted: Fri Aug 20, 2004 1:27 am
by feyd
was it too hard to read the manual?
[php_man]setcookie[/php_man] wrote:bool setcookie ( string name [, string value [, int expire [, string path [, string domain [, bool secure]]]]])

Posted: Fri Aug 20, 2004 1:42 am
by murthy
Hi ,

Thanks for your quick response.......

I used that function only.......

please visit my site http://www.searchchips.com

username : catherine
password: catherine

thanks
krishna

Posted: Fri Aug 20, 2004 1:44 am
by murthy
Hi ,
With the setcookie() function i am not able to setup the cookie...

please help me....

thnaks
krishna

Posted: Fri Aug 20, 2004 1:44 am
by feyd
uh, why?

Posted: Fri Aug 20, 2004 1:44 am
by murthy
please gothrough once my site:

http://www.searchchips.com

Posted: Fri Aug 20, 2004 1:45 am
by murthy
please continue the discussion.....

Posted: Fri Aug 20, 2004 1:46 am
by murthy
I used this ,

setcookie ("member_id", "$id", time()+360000,"/",".lotofcontent.com");

Posted: Fri Aug 20, 2004 1:50 am
by protokol
murthy wrote:I used this ,

setcookie ("member_id", "$id", time()+360000,"/",".lotofcontent.com");
Get rid of that '.' in front of 'lotofcontent.com'. So the line should look like this:

Code: Select all

<?php
setcookie ('member_id', $id, time()+360000, '/', 'lotofcontent.com');
?>

Posted: Fri Aug 20, 2004 1:52 am
by d3ad1ysp0rk
and if your site isn't "lotofcontent.com", it wont work anyways.

Posted: Fri Aug 20, 2004 1:52 am
by murthy
hi ,
waiting for your resoponse


Krishna

Posted: Fri Aug 20, 2004 1:54 am
by d3ad1ysp0rk
PLEASE, only post when you need to (ie when someone asks you, when something new comes up, etc), and provide us with as much detail as possible (the more code the better, as in, how you set it, how you're trying to use it, more on the situation, etc).

Thanks.

Posted: Fri Aug 20, 2004 1:56 am
by murthy
My site URL is : http://www.searchchips.com but my hosting name http://www.lotsofcontent.com......

Posted: Fri Aug 20, 2004 2:00 am
by murthy
Hi ,

My Site url is : http://www.searchchips.com

and Hostname is : lotofcontent.com

I used the function like : setcookie ("member_id", "$id", time()+3600000,"/","lotofcontent.com");

In my browser getting problem with cookie setup....

Posted: Fri Aug 20, 2004 2:00 am
by feyd
.....

congratulations, you have a parse error.. we can't help you much without some details about it.. like code :roll: