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

can you give me an example code of calling java script function in php variable using AJAX.or with out ajax??????

1321


Why is node js better than php?

609


Tell me how to retrieve a cookie value?

532


Is age nominal or ordinal?

514


How can we destroy the cookie in php?

531






Where is the submitted form data stored?

571


What is the use of mysql_fetch_array in php?

507


Can we use get instead of post?

498


Which PHP function would you use to send an email?

598


How is traits used in php?

535


List few sensible functions in PHP?

564


Explain array_uintersect()?

587


Which is faster for or foreach?

508


What is session in php why it is use?

488


Is facebook still in php?

515