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
Which is not a php magic constant?
How to create connection in php?
When sessions ends?
Does wordpress run on php 7?
Describe PHP error and logging information?
What is get and post method in php?
How to redirect https to http url and vice versa in .htaccess?
What is smarty?
What is framework in php?
How many days will it take to learn php?
Why post method is used in php?
How to select a database?
What is the difference between javascript and php?
What is php stack?
How to Retrieve the Session ID of the Current Session?