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
What is php and what does it do?
Who created numbers?
What is the difference between apache and tomcat?
What is the difference between explode and split?
Is age nominal or ordinal?
What are php errors?
Difference between mysql_connect and mysql_pconnect?
What is php's mysqli extension?
How to strip whitespace (or other characters) from the beginning and end of a string?
How to stop the execution of php script?
How do I run a php program in dreamweaver?
What is the functionality of md5 function in php?
Is php a backend?
What is the use of htmlentities in php?
What does echo mean in php?