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
Which function is used in php to search a particular value in an array?
How does csrf attack work?
What is the difference between fopen() and fclose()?
Explain how you can update memcached when you make changes to php?
How can you compare objects in php?
How can you associate a variable with a session?
How to call a php function from another php file?
What is php routing?
What is framework in php?
What is difference between md5 and SHA256?
Which have the fastest execution between mysql_fetch_array() and mysql_fetch_assoc()
What is difference between web service and api?
What is ltrim?
Tell me what type of operation is needed when passing values through a form or an url?
What is button in html?