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
Tell us what does $_cookie means?
How to join multiple strings stored in an array into a single string?
Is php easier than node?
What is difference between web service and api?
Tell me how to get the value of current session id?
Is php object oriented?
Is null in php?
What is the difference between explode () and split () functions in php?
What is an example of a variable?
What is the difference between htmlentities() and htmlspecialchars()?
What is print_r?
What are the different types of PHP arrays?
How to convert a string to lowercase in php?
Explain me is it possible to destroy a cookie?
How to Pass JSON Data in a URL using CURL in PHP?