codeexploiter
10-06-2006, 11:50 AM
Hi all,
I am just thinking about implementing a private section in my Intranet where only registered/authorized users can enter. I know how to implement the user management section but i am thinking about something different, i am looking forward to implement a unique user log in system means if a user has already be logged in to the section at the same time the same username can't be used to log into the section.
I am thinking about implementing this one using something like the following:
After a successful user login their userid will be stored into an array that has application scope, then when the next user logs in the userid will be checked against the values that has been stored in the array that has application scope, if the userid exists there then the new login attempt will be blocked if the userid is not present then the other user can log into the section without any trouble. Whenever a user session ends the corresponding userid will be removed from the array.
I want to know whether the above mentioned idea is in correct direction? I am open for your thoughts about the implementation of the above mentioned item.
Thanks in advance for any help from you developers in this matter.
Regards
Code Exploiter
I am just thinking about implementing a private section in my Intranet where only registered/authorized users can enter. I know how to implement the user management section but i am thinking about something different, i am looking forward to implement a unique user log in system means if a user has already be logged in to the section at the same time the same username can't be used to log into the section.
I am thinking about implementing this one using something like the following:
After a successful user login their userid will be stored into an array that has application scope, then when the next user logs in the userid will be checked against the values that has been stored in the array that has application scope, if the userid exists there then the new login attempt will be blocked if the userid is not present then the other user can log into the section without any trouble. Whenever a user session ends the corresponding userid will be removed from the array.
I want to know whether the above mentioned idea is in correct direction? I am open for your thoughts about the implementation of the above mentioned item.
Thanks in advance for any help from you developers in this matter.
Regards
Code Exploiter