So, what I've learned from security while managing sessions is that the best practice is to save generated session id to client cookie and rest of data to save on server. So what's exactly happening with $_SESSION? At official PHP documents I've found only little description which is not saying anything.
Do I need to have session table created in my database on server, or does $_SESSION create some temporarely table and save there all the needed data? Problem is that I need to build good and reliable system with approx. 1000 users simultaneously logged to server, so I don't know how good is it to "let" $_SESSION do all the work.
And how does $_SESSION generate ID? Is it one ID for combination of IP and browser? I mean, that way it doesn't need to require permission of using cookies, but instead it (server) saves some ID for IP and browser, and this was client doesn't have ANY data for session or whatsoever. This is just my way of thinking how it might go, but I'm not sure how to do it and what's the proper way, so can you please help me?