Currently my situation is i have a window server hosting web and will communicate to unix host server(database) to retrieve data whenever user request. I'm using apache and PHP for my window server.
Can i actually create a new persistent socket connection to host whenever a new user log in and the socket will tie to the specific user?
the socket should only tie with one user.
The reason to use persistent socket is because allow user to continue the connection with other pages after the user log in for security purpose. However using persistent socket will only have on connection, if second user come in the user will continue use the existing connection. Second user shouldn't share the same with the 1st user.
i have tried use fsockopen() but whenever go the other page it will start up a new connection and need to re-enter user and password at unix host side.
Is there any way i can keep my server to unix connection stay connected for the same user? if the other user come in will require to login and tie the connection after successful login.