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 / sudhir sharma

In PHP server under session_save_path,
When user login a UID generate and it will passing into
client cookies if user cookies is turned on otherwise the
session can tracked by passing PHPSESSID as a get variable
to every pages.

2-The file contains the session name and data type of the
value, length and session time separated with | and :

3-There is no matter of server crash because of when the
user left the website the session became expired.So there is
no matter of server is loaded with session files.

4-By User Identification id (UID) generated according to
session generate..

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you put a space in html?

611


How do you end a session in php?

632


In how many ways we can retrieve the data in the result set of mysql using php?

565


What is array and function?

636


What does $_env mean?

641






How do I use isdigit function?

645


What is difference between count or sizeof function in php?

624


What is ci framework in php?

585


What is the difference between die () and exit () in php?

597


What is difference between php and wordpress?

574


What does it mean when it says the csrf token is invalid?

577


Explain me what are the main error types in php and how do they differ?

623


What is the use of strpos in php?

655


Is empty check in php?

638


Do you know what is the use of the function 'imagetypes()'?

567