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

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

496


Is php free to use?

532


How to join multiple strings stored in an array into a single string?

510


What is different between software and app

1227


Differentiate between php5 and php7?

625






Is nan in javascript?

518


How a variable is declared in php?

510


Is salary a ratio or interval?

547


Hi this is amul jani here, i complied my graduation in B.com stream.. but as career i looking for PHP language.. to get shape my career. so is that possible to enter in IT world.. for me how much scope of develop my career in this field.. amul jani

1592


What is the use of dual table in mysql?

516


What is php variable?

519


What is difference between static and final in php?

524


Write a program to display table of a number using php?

492


What kind of variable is age?

598


How to protect special characters in query string?

530