PHP School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a PHP Expert!

Join 307,127 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 2,049 people online right now. Registration is fast and FREE... Join Now!




Restrict simultaneous login

 

Restrict simultaneous login

vrushali.musale

4 Oct, 2009 - 11:10 PM
Post #1

New D.I.C Head
*

Joined: 4 Oct, 2009
Posts: 1

Hello,
In our website we want to restrict simultaneous login. Means, user should not be able to login from 2 different machines simultaneously.Please help


User is offlineProfile CardPM
+Quote Post


noorahmad

RE: Restrict Simultaneous Login

5 Oct, 2009 - 12:03 AM
Post #2

Webmaster
Group Icon

Joined: 12 Mar, 2009
Posts: 2,087



Thanked: 142 times
Dream Kudos: 1350
My Contributions
you can use the IP to block users from multi machines,
$_SERVER['REMOTE_ADDR'] smile.gif
User is offlineProfile CardPM
+Quote Post

felixtgomezjr

RE: Restrict Simultaneous Login

4 Nov, 2009 - 05:25 AM
Post #3

New D.I.C Head
Group Icon

Joined: 4 Nov, 2009
Posts: 42



Thanked: 3 times
Dream Kudos: 50
My Contributions
in the script that will check for the authentication, once the user is authenticated, make use of a flag that will toggle. Depending on the status of that flag, it will allow to proceed after successful login or it will go to a warning page saying something like. You are currently logged in.



For more tutorial about PHP, check my Shoutbux
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 02:28PM

Live PHP Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month