How session works (internal processing of session) ?

Answers were Sorted based on User's Feedback



How session works (internal processing of session) ?..

Answer / 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

How session works (internal processing of session) ?..

Answer / vaibhav jain

server knows this info by the session ID that is generated.
All the values are under a session ID, which is unique.

Is This Answer Correct ?    3 Yes 0 No

How session works (internal processing of session) ?..

Answer / binoyav

I need the answer in more depth.
For ex:- There are two users A & B.
User 'A' is using the machine 'comp_A' and user 'B' is using
'Comp_B'. How the php server knows that user 'A' is using
Comp_A and B is using Comp_B ?

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More PHP Interview Questions

I have written a source code in php but I do not know how to compile that and conduct it with a website please explain me the how to compile that ?

1 Answers  


What is baseurl?

0 Answers  


What is dao in php?

0 Answers  


Explain Magento's autoload functionality and how to instantiate classes? What is the process you take when theming a store? Talk about Magento collections and how you use them?

0 Answers  


Explain the installation of PHP on UNIX systems?

0 Answers  


Where can I learn php?

0 Answers  


Explain me what is the use of header() function in php?

0 Answers  


what is PDO?

0 Answers  


What is magic function in php?

0 Answers  


Which one is best framework for php?

0 Answers  


What does $this do in php?

0 Answers  


How to get path of php.ini with a php script?

1 Answers  


Categories