Page 1 of 1

login problem

Posted: Thu Jan 09, 2003 11:29 am
by vivek
hi friends in the last two posts I did't mention my exact problem so here it is.

The problem i am facing is i am creating a loggin system to my site by assining a unique id to each users.
such that a user can't login from two places.

In ASP I can store a variable(an array or "sripting.dictionary" object) as an application variable
I can check the existence of the user id in this array before allowing a user
to loggin.
and don't allow the user to loggin if the id is already present in the array.
I want to do the same in php
how can I do it.

using DB

Posted: Thu Jan 09, 2003 12:01 pm
by AVATAr
you can do the same thing using a DataBase.

Create a table an use it like you are using that array

:wink: