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

What are the different tables(engine) present in mysql, which one is default?

1024


Why php is used in html?

948


Which software is best for php?

993


What is session and why do we use it?

1042


What is the meaning of "enctype= multipart/form-data" ?

1118


Which function you can use in php to open a file for reading or writing or for both?

1089


Do you know how can php and html interact?

997


How can cross site request forgery csrf be prevented?

929


Can I include php in javascript?

1064


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

994


What Is a Persistent Cookie?

1032


How can we destroy the cookie in php?

981


What is default session time in php?

964


What is php and sql?

1089


What is the difference between abstract class and interface in php?

1119