login problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vivek
Forum Newbie
Posts: 4
Joined: Tue Jan 07, 2003 1:12 pm

login problem

Post 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.
User avatar
AVATAr
Forum Regular
Posts: 524
Joined: Tue Jul 16, 2002 4:19 pm
Location: Uruguay -- Montevideo
Contact:

using DB

Post by AVATAr »

you can do the same thing using a DataBase.

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

:wink:
Post Reply