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
Can you specify the "new line" character in single-quoted strings?
What is echo in html?
What is the Default syntax used in PHP?
Differences between get and post methods?
What is the use of mvc in php?
Explain about getters and setters in php?
What does php mean?
What is namespace and use in php?
Tell us how to create an array of a group of items inside an html form?
/temp is a type of filesystem directory. State Whether True or False?
What is mvc php?
How to generate a form?
Why ide is recommended for use while programming with php?
What is php explain how php works?
How is it possible to cast types in php?