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 are the different tables(engine) present in mysql, which one is default?
Why php is used in html?
Which software is best for php?
What is session and why do we use it?
What is the meaning of "enctype= multipart/form-data" ?
Which function you can use in php to open a file for reading or writing or for both?
Do you know how can php and html interact?
How can cross site request forgery csrf be prevented?
Can I include php in javascript?
What is the difference between htmlentities() and htmlspecialchars()?
What Is a Persistent Cookie?
How can we destroy the cookie in php?
What is default session time in php?
What is php and sql?
What is the difference between abstract class and interface in php?