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 can we register the variables into a Session?

Answer Posted / animesh dutta

<?php
// Start the session
session_start();
?>
<?php
// Set session variables
$_SESSION["favcolor"] = "green";
$_SESSION["favanimal"] = "cat";
echo "Session variables are set.";
?>

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why shouldn't I use mysql_* functions in php?

1084


What is local variable in php?

988


What is difference between get and post in php?

1181


How to access a specific character in a string?

990


What is the use of imagetypes() method?

979


How can you upload a file using php?

1112


Is empty function c++?

969


How to execute an sql query? How to fetch its result?

1124


Which is the correct way to check if a session has already been started ?

991


How to display your correct URL of the current web page?

1107


What is the use of mvc in php?

993


What is difference between required and include in php?

950


What are different types of errors available in Php?

928


What are the advantages of triggers?

980


How can I make a script that can be bilingual (supports english, german)?

1022