Hi,
for a new project, i begin the reflexion. I need a webserver which need sessions.
I have some ideas :
when a user connects to the server, that creates an input in a base ( why not a linked list ?), with its IP and name and access level and state. If its password is correct, then its state is "accepeted".
But i want to do admin and moderator which have access at differents pages, how can i do in purebasic ?
PS : my users and password will be stored in a pb database !
The standard way would be store the password client-side in a cookie. Then have all users in a database. Filtering by IP is not good since many computers on a LAN can have the same public IP.
Trond wrote:You need to use cookies to manage sessions unless you keep the connection open (which you do not want to do on a webserver).
Could u elaborate on this. What do you mean by an open connection. Juz wandering if I need to force a CloseNetworkConnection. If u have a page with say 10 images. You will probably get 11 client requests from a page load. Unused connections time out after while (I'm talking PB code)