Dear SK, alternately, close previously opened A/C and allow current one. this is similar to wat yahoo messenger does and is a good safety measure. 1. If u use this technique, ur problem of shutdown would be solved. 2. Alternately, maintain sessions (using session ID) in PHP. 2a. Or just monitor user activity periodically. If no activity for x minutes, log the user off. Keep an activity counter, and run a script in the background, to reduce the counter ever y minutes. On activities like click, mouse movement, page request, etc, increment the counter. Think semaphores in Linux... 3. Try AJAX. You can keep sessions alive from server side. When no feedback is received, log the user off. KM P.S. Pls send mails to the group rather than to me. On 6/26/06, suresh kumar <asureshkumar_1983@xxxxxxxxxxx> wrote:
Tnxs for ur reply,i am very happy to receive response from u.I am storing all the user account in my database.I am facing one problem.Suppose i am setting a flag fot that login user.suddenly if there is any power shutdown or user forgot to logout.then the flag always be set.In MySQL is there any query is available for automatic update.I am waiting for ur reponse A.suresh *kartikay malhotra <kartikay.malhotra@xxxxxxxxx>* wrote: strange problem, but very similar to links in linux. you must be maintaining a database or a record file. u can maintain all links ('users' as u put it) for a given user. if a user logs in through any of his accounts, check if he/she is logged in another A/C and stop this one. else, allow log-in and set a flag. alternately, close previously opened A/C and allow current one. this is similar to wat yahoo messenger does and is a good safety measure. Q. why do you want to assign more than one A/C anyway? and if its an invitation to someone else, then you MUST not stop that new person. he would be a valid subscriber, won't he? No PHP here :(, guys would frown... KM On 6/24/06, suresh kumar wrote: > > Hi, > I am facing one problem.i previously mailed ,but there is no > response,its running out of time.i want to implement that logic as soon as > possible.This is my problem > > We are developing an online software for displaying ads > in big mall.I want to restrict only one user can login to his own account > at that particular time.suppose "users1" created a new user "users2" for > another user.If "user1" login to the "users2" account and at that same > time i want to restrict "user2 " for log in to his account.i want at a > time only one user can access his account.I am waiting reponse from u > > > A.suresh > > > --------------------------------- > Yahoo! India Answers: Share what you know. Learn something new Click here > Catch all the FIFA World Cup 2006 action on Yahoo! India Click here > ------------------------------ Yahoo! India Answers: Share what you know. Learn something new Click here<http://us.rd.yahoo.com/mail/in/mailanswersshare/*http://in.answers.yahoo.com/> Catch all the FIFA World Cup 2006 action on Yahoo! India Click here<http://us.rd.yahoo.com/mail/in/mailfifa/*http://in.sports.yahoo.com/football/football_fifa.html>