[PHP] User Authentication / only 1 login per user at any time

2001-09-10 Thread Lewi Hirvela
Hi, With most of my scripts, when I am about to write something, I have it in my head on how to do it exactly.. But with only 1 login per user at anytime, I havent found any good ways to do it, All I can think of is to set a mysql field called ³logged_in² to ³1² or ³0² if logged in or not, but

Re: [PHP] User Authentication / only 1 login per user at any time

2001-09-10 Thread Michael Kimsal
Hi there: We have this functionality built into our core framework with our custom session handling. The basic premise is that you don't store a 1/0 in a 'logged in' flag, but store the session key with the username. When someone logs in, assign their session key to that username. The