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 |
What are the encryption functions available in PHP?
A company named Pensar Technologies in chennai has offered me a job as Software Trainee in chennai.But they are asking to pay demand draft of Rs.75000/- in the name of the company.They are saying the gross renumeration will pay Rs.90000/- annually.I want to know whether this is good or bad company?Help me out in this.
Tell us how to set cookies in php?
How can we extract string ?allinterview.com ? from a string ?http://info@allinterview.com? using regular expression of PHP?
Tell me how can we get the error when there is a problem to upload a file?
What are global variables in php?
How can we extract string ‘abc.com ‘ from a string info@abc.com" target="_blank">http://info@abc.com using regular expression of php?
What is the difference between include and require?
What is purpose of @ in Php?
What is the purpose of the '.myd' file extension? What do thes file contain?
what are the various PHP Script Optimization techniques?
1 Answers IBM, Krify Software Technologies, TCL,
Which variable declarations within a class is invalid in php?