Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 02-17-2007, 08:57 PM   #1 (permalink)
Anisuzzaman
Recruit
 
Join Date: Feb 2007
Posts: 1
Anisuzzaman is on a distinguished road
How to block parallel login?

How to block parallel login?

How can I block multiple login attempts in to a single account, when that user have already logged in?

Like... Yahoo/Hotmail email accounts...

1. When I logged in, using <username: russell> & <password: 123> from <my pc: xunit>

2. Until I logout or close my browser, the system should not allow me to login again from <my pc: xunit> or from any other pc, using same <username> and <password>.

How can I solve my problem? Please help…
Anisuzzaman is offline   Reply With Quote
Old 02-18-2007, 01:44 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,694
redhead is on a distinguished road
Set a timer, have a date("U") stamp set in the user profile, and say if no cookie containing the user-login info exist, but the date stamp is say no more than 5 minuts old, you're probably trying to login from several locations at the same time.
And have a check to say, if stamp is more than 5 minuts from now, but user is loged in, update to now.
Then uppon logout, set timestamp to somethign like 10 minuts in the past.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Login Screen Salchester PHP 4 02-05-2007 11:36 PM
online bank login not secure sde Lounge 2 12-06-2004 03:08 PM
login session help please Namraw PHP 2 09-14-2004 03:26 PM
narrowed down login trouble trevor PHP 7 01-18-2003 05:50 PM


All times are GMT -8. The time now is 05:12 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting