I created a cookie with the value like '1A2A',now i want to
update this value regularly (about 20 times in a minute)
with the value '1A2A3A' , 3A is the new value,new value
will vary on the request it may be 3A or 4A or 100A ,some
times the cookie is updating with new value but not every
time.Can any body suggest the solution
Answer Posted / amit verma
use PHH function "setcookie", the only point to note is,
the name of the cookie needs to be same, for differetn
values of this cookie. This way it will keep overwritting
different values for single cookie. Syntax is -
setcookie("TestCookie", $value1);
setcookie("TestCookie", $value2);
setcookie("TestCookie", $value3);
..
.. and so on
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Does cors prevent csrf?
Which is better python or php?
armstrong number by using php while number is given by the keyboard.?
How is it possible to remove escape characters from a string?
What type of headers that PHP supports?
How do I update php?
What is a base url?
Do I need to install php after xampp?
how to use http headers inside php? Write the statement through which it can be added?
What is mysqli_fetch_array?
When is a conditional statement ended with an endif?
Is empty function c++?
What is an example of a variable?
Do you know how can we check the value of a given variable is a number?
What is php.ini & .htacess file?