I am trying to understand cookies and sessions professionally.
I know that when a browser connects to a server, the server asks the browser to paste a cookie with phpsessid in the client browser cookies folder.
Now that we have the phpsessid, if the client enters the server the browser sends to the server the phpsessid and the server takes a look at the tmp folder and if we have a match it loads back every data the user has for this client, but I am kinda confused with the process.
I will be thankful if some one can help me understand those processes of creating a session and cookies - what is happening behind the scenes.