1.Where are the sessions storing ?
2.What are the contents of a session file ?
3.If the server is loaded with too many session files there
is a possibility of server crash. How can we solve this
issue?
4. How does php server identify that the particular session
belongs to particular user ? For ex: If two users A and B
logged from different machine, separate session files (say
1 and 2) will be created in the server. But how the php
knows that 1 belongs to A and 2 belongs to B ?

Answer Posted / dharmaraj.a

4. When session_start() a session id will be generated and
it will be placed in a client machine in a cookie. If
suppose the cookie is disabled in client machine then the
session id will send through the url.

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many different types of messages available in php?

545


What is the difference between the include() and require() functions?

871


How to return a value back to the function caller?

556


What is meant by ‘passing the variable by value and reference' in php?

526


How to initiate a session in php?

652






How to create connection in php?

523


Write down the code for save an uploaded file in php.

528


Write a program to find the factorial of a number in php?

522


Tell me how is it possible to know the number of rows returned in result set?

546


Which programming language does php resemble to?

532


How can I prevent sql-injection in php?

586


How many types of php are there?

518


How do I update php?

572


What is psr in php?

603


What is the use of $_server["php_self"] variable?

527