Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



I created a cookie with the value like '1A2A',now i want to update this value regularly ..

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

Post New Answer

More PHP Interview Questions

What does a delimiter do in mysql?

0 Answers  


What is php resource type?

0 Answers  


What is isset function in php?

0 Answers  


What is difference between echo and print_r in php?

0 Answers  


What are the benefits of using php and mysql?

0 Answers  


is that "enumerated array" equal to "numeric array"?

0 Answers   Maxil Technologies,


What function do we use to find length of string, and length of array?

0 Answers  


Explain what are the three classes of errors that can occur in php?

0 Answers  


How to assigning a new character in a string using php?

0 Answers  


Explain me what are the main error types in php and how do they differ?

0 Answers  


What can php do?

0 Answers  


Starting or restarting a computer is called

0 Answers  


Categories