0

Sessions in php...

Hi, I started to study php a few days ago, and something still remains pretty unclear... When a session is open in Php (session_start()), is does it still allow another visitor on the website to have their own session opened? If it was the case, when I open a file for one session, does it prevent the other users to open the same file? I'm a bit lost... Thanks for any answers!

13th Aug 2018, 9:57 PM
Kant1
Kant1 - avatar
2 ответов
+ 3
It creates new session for each user. Or continues the previous one. Sessions are used to store data in global $_SESSION variable. Is also spoken as login sessions.
13th Aug 2018, 10:30 PM
Toni Isotalo
Toni Isotalo - avatar
0
Thanks for your answer! Imagine two sessions are opened, and I ask for each session to open the same file, will they both be able to open it at the same time? Thanks!
14th Aug 2018, 12:54 PM
Kant1
Kant1 - avatar