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 is php and what does it do?

633


Who created numbers?

611


What is the difference between apache and tomcat?

618


What is the difference between explode and split?

563


Is age nominal or ordinal?

586






What are php errors?

572


Difference between mysql_connect and mysql_pconnect?

582


What is php's mysqli extension?

646


How to strip whitespace (or other characters) from the beginning and end of a string?

544


How to stop the execution of php script?

609


How do I run a php program in dreamweaver?

610


What is the functionality of md5 function in php?

663


Is php a backend?

615


What is the use of htmlentities in php?

582


What does echo mean in php?

653