Forum Moderators: phranque
Welcome to WebmasterWorld [webmasterworld.com]!
Can you please be more specific about what you want to do?
Serving a single user is not a simple thing, since you will have to define "single user" for Apache, and may in fact have to use a script to do what you want.
Apache is not aware of user sessions. For example, serving an HTML page with images on it, Apache will serve the HTML page. Then the browser will issue a new and separate request for each image, included CSS file, or script on the page. Apache does not associate those new requests with the original page request in any way; It simply serves whatever "file" the client browser requests.
So in order to serve a "single user" you will need to define how the server is expected to identify that "single user" and how the switch to a "new user" is to be handled.
This could be as simple as writing code that allows coneections from only one IP address and needs to be edited to modify the accepted IP address, or a sessions-based method using a script to identify and track the "single user" through a session, and then select a new user when the first user logs out.
As you can see, your question is not a simple one.
Jim
I have a server that must atend more than one client but only one just each time. When this one leave the page then another one could go in. I guess that I need: " ... a sessions-based method using a script to identify and track the "single user" through a session, and then select a new user when the first user logs out." like you said.
But I don't know who can I do that.
thanks
Guix