setcookie function problem
i have a question,
when i am going to multiply with 26 to 31 it makes cookie file. in browser's(IE) menu tools->internetoption->settings->viewfile
thiws code works properly
<?php
setcookie("user", "hello", time() + (86400 * 26), "/" );
?>
but when i am going to multiply with less than 26 it does not make any cookie file. in browser's(IE) menu tools->internetoption->settings->viewfile
this code shows Problem
<?php
setcookie("user", "hello", time() + (86400 * 24), "/" );
?>
can any one help my or tell me why this happening?
Thanks In advance
Re: setcookie function problem
What is the problem? Is there an error message? If so, what is it?
Re: setcookie function problem
Hello PenagateNo,It does not show any error message>the problem is that,it does not Create or make any cookie file in the following path.like example, when we visit Yahoo.com.it shows or create cookie:[email protected]/ in the following path in browser's(IE) menu tools->internetoption->settings->viewfile
please help me to overcome from this problem and thanks for Showin me your interest in my problem.Thanks In advance,
Re: setcookie function problem
May be you have already done it, but did you try to check through php if the cookie is actually being set, rather than look at the IE files?
Re: setcookie function problem
Quote:
Originally Posted by somdeep_123
i have a question,
when i am going to multiply with 26 to 31 it makes cookie file. in browser's(IE) menu tools->internetoption->settings->viewfile
thiws code works properly
<?php
setcookie("user", "hello", time() + (86400 * 26), "/" );
?>
but when i am going to multiply with less than 26 it does not make any cookie file. in browser's(IE) menu tools->internetoption->settings->viewfile
this code shows Problem
<?php
setcookie("user", "hello", time() + (86400 * 24), "/" );
?>
can any one help my or tell me why this happening?
Thanks In advance
Remove the original cookie first.