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 / 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 |
Explain about the data types in PHP?
How can you send email in php?
In forms when i am click submit button it will store on the desired table as well as it send to paticuler mail id. Any body know the answer plz give me detail information.
How to get a total number of elements used in the array?
What is a null coalescing operator in php7?
What is urlencode and urldecode in php?
How can we encrypt the username and password using PHP?
13 Answers Avaria, HCL, TCS, Xpert,
What is php and why it is used?
What types of loops exist in php?
how much a fresher php programmer can earn in india
Can I use php in visual studio?
How can you retrieve a cookie value?