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 full form?
Write a program to display a table of any given number?
How do you find the length of a string in php?
How many ways to include array elements in double-quoted strings using php?
What is psr in php?
What are the uses of php language?
What is the difference between laravel and php?
What is isset function in php?
Which functions are used to count the total number of array elements in php?
Why is php used for web development?
What's the difference between accessing a class method via -> and via ::?
How can you execute php script from the command line?
What are the different loops in php?
Is PHP runs on different platforms (Windows, Linux, Unix, etc.)?
List the different types of print functions available in php?