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 / senthilkumar g

<?

session_start();
$username=$_GET['username'];
$_SESSION['username']=$username;
session_write_close();
?>

Is This Answer Correct ?    13 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which will print out the php call stack?

967


What is php's mysqli extension?

1002


What is a static variable in php?

1053


What is the use of return in php?

904


What is factory pattern in php?

921


What are escaping characters? Explain with an example?

943


What are psrs?

1073


Is python similar to php?

1018


What's the output of the ucwords function in this example?

1030


What's the best method for sanitizing user input with php?

926


How can you make a connection with mysql server using php?

971


What is csrf cookie?

911


What is the purpose of the '.myd' file extension? What do thes file contain?

981


What is a php session?

1046


Explain about objects in PHP?

1001