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 session works (internal processing of session) ?

Answer Posted / pankajbisane

To start a session:
– session_start()
– Creates a session identifier
– Session identifier is passed between client and server
either as
a Cookie, or in GET parameters
• Then, can create, access, and modify session variables:
– $_SESSION[session_var_name] = value;
– $_SESSION is only available once you call session_start()
– $local_variable = $_SESSION[session_var_name];
– Can check if session variable is set by using isset();
• To end a session:
– session_destroy();

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell us what does $_cookie means?

1059


How to join multiple strings stored in an array into a single string?

1095


Is php easier than node?

994


What is difference between web service and api?

1104


Tell me how to get the value of current session id?

1004


Is php object oriented?

985


Is null in php?

984


What is the difference between explode () and split () functions in php?

1166


What is an example of a variable?

1063


What is the difference between htmlentities() and htmlspecialchars()?

1053


What is print_r?

948


What are the different types of PHP arrays?

1122


How to convert a string to lowercase in php?

1099


Explain me is it possible to destroy a cookie?

1000


How to Pass JSON Data in a URL using CURL in PHP?

1122