I am working on webApp, which should only perform tasks using AJAX. This seems to work very well, but I have a problem because I don't store the variables Sessionon a public site.
My login procedure is similar to iCloud. You come to one page requesting a login. Your login is sent to the server using AJAX and returns trueor false. If true, the registration window disappears and you are ready to work with applications.

When you look at the image above, you will see two green fields in the form of the same site without any URL updates or anything else. This is just the same page.
The pink boxes represent Apache servers that are not registered Sessions. My session class was created using an idea session_set_save_handler.
session_set_save_handler(
array($this, 'open'),
array($this, 'close'),
array($this, 'read'),
array($this, 'write'),
array($this, 'destroy'),
array($this, 'gc')
);
I cannot understand how a public site can request data on servers pinkwithout a session identifier. Can someone tell me the idea of an idea session_set_save_handleras if I was 6 years old? I read the PHP manual for details, but it really bothers me.
If anyone knows how this communication method may work correctly, tell me. All Apache servers are connected via LAN and can communicate. Also, they all have access to the same Session Classin the Apache include library.
source
share