Reply to Re: Exclusive session

Your name:

Reply:


Posted by Gordon Burditt on 09/24/06 20:29

>How to make a session "exclusive"? When one attempts to open a new
>session either he's warned and asked to wait or any other openned
>session is closed.

If a session is already open, PHP generally just uses that session
and does not try to open another one.

>The need is to force only one user at the same time.

Since there are plenty of ways to leave a session without informing
PHP of that, this is going to be a severe problem. You can time
out sessions but that can be very annoying to your users. Indefinite
lockouts are even worse.

>I'm currently using the database but also looking at a php only solution.

There really isn't a good solution, period, unless allowing a user
a maximum of zero sessions is acceptable.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация