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 |
Can you use both this () and super () in a constructor?
Can we learn php without html?
write a prog using insert,update,delete in this manner as output? name: phno. add button 1.name phno. edit button delete button 2.
Does php class need constructor?
When sessions ends?
What is difference between single quotes and double quotes in php?
what is the url rewriting?how to rewrite the url? give any example
What is design pattern? Explain all including singleton pattern?
Tell me how is it possible to parse a configuration file?
Which is better session or cookie?
Which function can be used to delete a file?
How to download and install php for windows?