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
Tell me what is the difference between get and post?
How can we change the maximum size of the files to be uploaded?
What are getters and setters php?
Differences between get and post methods?
What is a session in php?
Why we use get in php?
How to include a file to a PHP page?
How to convert the first character to upper case?
What are default session time and path?
How to get no. of rows using MYSQL function?
What is the difference between apache vs niginx?
How do you parse and process html/xml in php?
What is the best website to learn php?
How can we change the value of a constant?
What is mysql_fetch_object?