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...


How to add a cookie?

Answers were Sorted based on User's Feedback



How to add a cookie?..

Answer / rupali

bool setcookie ( string $name [, string $value [, int
$expire [, string $path [, string $domain [, bool $secure
[, bool $httponly ]]]]]] )
for e.g.
<?php
$value = 'something from somewhere';

setcookie("TestCookie", $value);
setcookie("TestCookie", $value, time()+3600); /* expire in
1 hour */
setcookie("TestCookie", $value, time()
+3600, "/~rasmus/", ".example.com", 1);
?>

Is This Answer Correct ?    7 Yes 0 No

How to add a cookie?..

Answer / lamp

How to add a cookie,means what exactly...plz explain

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More PHP Interview Questions

what are the errors and when we get that particular errors.and who will give that errors

3 Answers  


if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer

0 Answers   Yash Technologies,


What library is used for pdf in php?

0 Answers  


Code to upload a file in PHP?

0 Answers  


Which programming language does php resemble to?

0 Answers  


Why do we need session?

0 Answers  


Do while loops?

0 Answers  


What is foreach loop in php?

0 Answers  


What is str_replace()?

0 Answers  


What is meant by nl2br()?

4 Answers   Rushmore Consultancy,


How to call php function from javascript using ajax?

0 Answers  


What is the content of /etc directory?

0 Answers  


Categories