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

Explain php parameterized functions.

935


How to create an array in php?

1038


Why session is required?

885


Explain the difference between unlink() and unset()?

900


Explain me is multiple inheritance supported in php?

1013


What is difference between web service and api?

971


How do I sort numbers in php?

988


Tell me what is the use of explode() function?

926


How to access a Static Member of a Class in PHP?

972


Explain Booleans in PHP?

1039


What is difference between session and cookie in PHP?

930


Explain do you use composer? If yes, what benefits have you found in it?

922


Tell me what types of loops exist in php?

1059


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

933


why did u want to leave your past organisation?

2005