.hack//GU
Feb 8 2008, 01:00 AM
| | When we login, we got a session. But at the same time when we still login, another one could login at our account.
So, can we restrict only one user could login at one account? So if another wants to log into the same account, he must wait until the one logs out.
Thanks in advance. |
Reply
sonesay
Feb 8 2008, 01:15 AM
I came across this problem before and found a link that showed one possible solution, It uses another table to hold users currently logged in. So when a user logs in they entry is entered into the table of logged in users. This table can also be used for showing all users logged in. When the same user tries to login again you can check this table and then display an appropriate message for them if the same user is already logged in. I did not read too much of it but I think whats lacking in this solution is how to deal with users who log off without clearing their name from the logged in users table. i.e by closing their browser without choosing the logout link. I think you may be able to use a timeout for their login session. It seems pretty complicated just to handle a login session but thats what I think is the only way if you were to write it yourself. maybe google for ways to do it or hopefully someones who has done a complete login system to handle this can explain to us.
Reply
truefusion
Feb 8 2008, 02:26 PM
QUOTE(.hack//GU @ Feb 7 2008, 08:00 PM)  So if another wants to log into the same account, he must wait until the one logs out. It's easier if you create a user ID that gets randomly generated every time a user logs in, and keep track of them like that—this is how i have it in some of my scripts. This way, if someone were to log into the same account, it would kick the previous user off. The only problem with this is if there's a "battle" (i.e. both kicking each other off simultaneously) that gets started from this, but i don't see that as a big enough problem to worry about. However, if you were to follow the suggestion provided by sonesay about keeping track of all logged in users, you could limit the session by IP address: if it doesn't match, deny access for the time being.
Reply
sonesay
Feb 8 2008, 10:20 PM
Although I can see why you would want to limit the use of a site to one login per user for security, limiting chance of second account from making modifications affecting other account or what other reasons I'm sure theres a lot more out there but if the second person had the password and login id in the first place this should not be a problem having two logins. I know most sites let you log in more then one time from different machines, I've logged into trap17 from two different browsers and machines before and I find it quiet handy. Maybe you did not think of it this way, just something to consider before you do all the work trying to make it otherwise. I'll be coming back to this issue again soon when I am going to be building the login system. I'm still not sure if I'll use a PHP framework for this yet, I do not know any frameworks very well and I have been looking at one but documentation is very vague and examples are next to none. Also going about building pages how I would want to I would not know how to even begin in the frameworks.
Reply
Similar Topics
Keywords : login, account, time
- Hosting Account Suspended
status shows i am non-hosted (2)
Date Time Lights Temp And Timer, It's Go It All
(0) Here is MY review of this fantastic little clock that I got from China. I was a little worried
buying from a company that was all the way in China, www.LDUcompany.com but everything went real
well and may new clock was delivered in less time then they had said. I had first emailed them a few
times with a bunch of questions and they answered every one of my emails quickly. This clock is
really neat, every time you flip it on a different side it changes what it tells you and lights up
and starts flashing in different colors. It is built very well and it is not cheap jun....
Can't Login To Any Software On My Site
anyone know how to fix? (3) In a subdomain of my site I have an installation of MediaWiki, and until now it's been working
fine. But today I've been having trouble with it. Previously, whenever I logged into MediaWiki
it worked first time and I would stay logged in for about an hour, even without the "Remember Me"
option checked. But I tried logging in now, and after logging me in, the next page I went to showed
me as "not logged in". I cleared the cache as I know this has been a problem before, and then tried
logging in again, but it still said I was not logged in! So I tried one more ....
Story Time!
A Story I Wrote in Sixth Grade (2) I called it Kureshi's Tale, and I submitted it in this writing contest in sixth grade. Looking
back on it now, it is absolutely horrible. It was the longest thing I had ever written at the time,
but since then I've participated in NaNoWriMo. What are your opinions? Part I: PROLOGUE
Kureshi was born in the Birthing Cave, 12 falls ago, on November 10. The Birthing Cave was the most
sacred place to be brought into the world through from Heaven. It was considered to be magical, to
wish your newborn child good luck when they entered this world. Kureshi’s Paren....
[chsupport #ecn-115724]: Ftp/cpanel Login Problem
(7) Please take a look at this. Ticket ID: ECN-115724 Subject: FTP/Cpanel Login Problem Department: CH
Support Thanks.....
Converting A Blogspot Account Into A .com Domain
(0) I remeber reading a post here that mentioned something like converting a .blogspot.com account into
a .com domain but now I spent 45 minutes looking for the thread and I'm failing to find it. Does
anyone remember the thread or the site that the guy was pointing us to? Please help!....
Free Web Hosting Account Request [denied]
(1) Sub-domain or domain name: jlbribeiro.trap17.com Name/Nickname: who? Country you live in:
Portugal Theme of website: Personal Website where I'll be testing my webdesign and programming
skills. I will also host a Flash MSN Game that I'm developing (testing my programming skills
right now /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />).
It won't be available to the general public, only to my friends (because I don't want it
public and because that would slow down your servers). Reason for choosing us: Great....
My Free Hosting Account Request
(3) I recently filled out the form to request a free hosting account, its been about a week and I notice
that every one else's above and below mine has been reviewed, but mine hasen't been
thouched.... It also says that I have no hosting credits on the form, but the box on the forums page
says that i've got 35.55 credits! Im really anxious to get a website up and running!
just hoping some one can help me!....
Another Cust. Service Rant... This Time As A Customer
(5) On monday I experienced something that I haven't in a long time. Good customer service. I work
in the line of customer service, and I have come to the conclusion, there are different levels you
can provide. True customer service is hardly ever given anymore. For example, I ordered from
McDonalds recently and I ordered a McFlurry and a Sundae. I was given a McFlurry and a Shake. It was
at the start of a minor busy period (3 or 4 people were behind me waiting to order), so I waited
until the others were served, and I said to the lady that served me in a polite tone, "I....
Change Domain Name On Account Creation?
(2) My request for host account has been approved. In it I asked for a sub-domain. I have not yet
created my hosting account. Now I have bought a top level domain. Can I use that Domain Name
instead of the sub-domain I requested in my account creation process? Or do I have to first use
the sub-domain and then use the 'domain changing process' to change it to my new domain? ....
Cant Login To Cpanel On A Just Made Account O_o
(2) yes,i cant login i can login to normal panel but not to cpanel i get an error every time i login i
created a ticket some days ago and im not getting a responce please help me ThePro....
Debate With The Religions : Christian Vs Islam Vs More
This time I don't debate, you do (15) So I've done some nice debating and it's been nice. I've had multipe 5+ People ganging
up on me thinking it will make a real difference, but after pages and pages of debating, it
didn't go anywhere. Simply because they are afraid to look at it from the other angle, the other
side, because they fear going to hell. It's their problem. So I made this creative topic. This
thread is not ment for argueing and fighting. I want to see how you guys feel about each other's
religion" So muslims, christians, and anything else in between, you have your own....
Firefox 3 Sucks - Time For Another Browser
(48) No seriously, I've been using Firefox since 0.x releases. I loved it. Every release, despite
having no huge features, was a great update. Version 3, however, totally messes everything up. Its
default interface is ugly. And no Home button, really ??? (ps. I kno i can drag it back from the
bookmarks toolbar but still, its stupid). The address bar search thing. I liked the concept, but I
am so used to the old way, this actually distracts me, I don't want to search my history
everytime I type a new address. Plus the slide out is huge now making the whole thing feel t....
I Have Install Windows 2003 Server
I want multiple user to login my server (4) I have install windows 2003 server and some application like iis, share point, etc.my development
time want remote desktop for few user so I want multiple user to login my server but I have not
install active directory and I don’t want to install so tell me the best way to resolved the problem....
Error While Activating Account
(10) Hello, I was signing up for an account, and it sent me an email with a link to follow to activate
my account and when i cliked on the link i got the following: QUOTE(error message) 404 :: Neave
Not Found Whatever you were looking for, it ain't here. Sorry about that. 2006
Imagefilez.com :: www.imagefilez.com the link that was sent in the email is
http://www.imagefilez.com/validate.php?ses...3e6cffc8c1bd2bb ....
Background Image Swap Script
Change a Background Image based on clock time (15) Background Image Changer Script To swap the background image from your CSS file according to the
Server Clock Time. 1.) In your CSS file, add the following rule: CODE body {
background: url(time.png); } 2.) Create a "folder" named time.png. 3.) Into the
folder, place three images named morning.png, day.png, night.png. 4.) Also, in the same folder,
create an index.php file and copy/paste the following script. CODE <?php $hour =
date('H'); if ($hour < 12 ) { $image =
"morning.png"; } ....
Reducing Windows Vista Start Menu Programs Response Time.
How to do it. (4) If you have been using Microsoft Windows Vista for quite some time, you would have noticed that
installing a number of programs/softwares into your computer considerably slows down the response
time of your start menu program folder, sometimes up to one second or more before the programs
listed in a particular start menu folder is displayed. Worst of all, if you are trying to launch a
program from you start menu which is within another start menu prrograms folder. Well, I have found
a way to bypass this very annoying thing in Windows Vista. I have about 98 start menu en....
25 Of The Best Computer Hoaxes Of All Time
(5) I have to admit I only seen a few of these of course our favior nigerian scam was in on the list as
well, best part they have links to whats was wrong with everyone of these hoaxes. Of course I have
to admit these were some pretty funny ones, especially the cell phone tracer. what I recommend for
a phone number is 000-0000000 and you will be safe from any problems in the future and also care to
look how how to stupid some Nigerian scammers are? check this link out and read the emails and the
foot notes to these emails http://www.scamorama.com/bunyan.html . Those of ....
How Do I Make My Own Private Online Server Please Help Me Out.thank You For Your Time.
(22) can someone tell me how to make my very own online private server.Please help me out.This is really
pissing me off since no one will help me out.Thank you for your time.....
Living Without Computer Today - Is It Possible?,
How much time "eats" your computer? ;) (22) Hello there. My family members keeps annoyingt me becouse of sitting by computer so much. They
don't care, what am I doing: programming, reading news, posting in forums or reading emails -
they allways think that I'm just having fun, and it's no use from computer LoL So I decided
to ask, how much time a day do all of YOU spend sitting by computer? Just trying to find out: 6-8
hours per day is normal, or I can call myself computer maniac already.......
Incorrectly Set Hosting Accounts Have Been Deleted
it is your responsibility that your account is set properly (8) Dear newely hosted members: First of all, welcome to Trap17 Free Web Hosting with No Ads. When you
are approved for hosting by admins you are to proceed to the Process page (also explained in your
confirmation email) and activate your hosting account. It is important that you are to be patient
during the account creation step. Read all direction and caution words! And let the activation
script run the full length. Do not stop, go back or refresh. This will have adverse effect on your
hosting experience. It is also your responsibility to report any unknown errors o....
Innovative Login System
A new way to login to a website (17) Hi, I came across this website www.planmylifestyle.com which offers an innovative login system. In
the traditional login system, a user is asked to enter a username and password besides many other
personal information. In this website, to register the site creates an ID file that the user can
download to the local hard drive. After registration, to login to the website, the user has to
simply upload the registered ID file (browser and select ID file from local hard drive) and click on
the Login Button. The user is then taken to the website which seems to be a searc....
Time Viewing
(14) Einstein once proved time travel impossible but never said anything about time viewing i bielive so
i posted this to see if anyone has opinions i can feed off of about either a)do you think time
viewing will ever be possible and if so your theory or b)do you not agree with Einstein and think
time travel wil one day be possible and if so your theory....
Ftp Account Management
Part 2.2 of my 7 Part Cpanel Tutorial (1) This tutorial is an extension to my 7 tutorial series about the Cpanel. The 7 different Cpanel
tutorials can be found below. Part 1: E-mail Management Part 2: Useful Site Management Tools
Part 3: Useful Site Management Tools2.1 Part 4: Analysis/Log Files Part 5: Advanced Tools Part
6: PreInstalled Scripts, Extras, and Cpanel Options Part 7: Fantastico Detailed Cpanel
Tutorial Part 2.2: FTP Management For this tutorial, you will need to locate the Icon under
Site Management Tools labeled FTP Manager and also inside of the FTP:// Accounts area....
Creating Msn Account Without A Hotmail Account
(3) i fyou don't have a hotmail account or an account which doesn't automatically work with msn
from the start, this is how you do it. Step 1: go to the sign up page *go to "Use an e-mail
address you already have" section and click the link* Step 2: enter your details (your real email,
but the passwrd doesn't have to match, i think) Step 3: click next, type in you email again and
click accept Step 4: open up your email account and confirm your actions. Step 5: go into msn and
log in Modified URL to the portal page to avoid any confusion ....
Worst Game Of All Time
wats the baddest game of all time (60) I think the worst game of all time is superman for the nintendo 64 it was so stupid u had to fly
around these rings in the first mission which made no sense the game itself was poorly done the
powers were the only good thing and the story made no sense wat so ever so tell me wat u think is
the worst game of all time and why....
I Wanted To Close My Account.
Is that possible? (7) I wanted to close my account, is there a way to do that? Thanks in advance for the help!....
Complete Login System
With PHP + MYSQL (56) Its an complete login sistem made and tested by me and I think itwill be very usefull for people who
are tryn to learn PHP. First, let's make register.php: CODE <?
include("conn.php"); // create a file with all the database connections
if($do_register){ // if the submit button were clicked if((!$name)
|| (!$email) || (!$age) || (!$login) ||
(!$password) || (!$password2)){ print "You can't let
any fields in blank....
Your All-time Worst Book
Your all-time worst book (26) What is the worst book you've ever read and why?....
Video Games Are A Complete Waste Of Time, Face It!
(145) C'mon face it, video games are a complete waste of your time! Every time you turn on your
console you should be asking yourself "Is there something better I should be doing with my time...
like reading a good book... or watching a good movie... or flirting with a beautiful girl? Do I get
anything out of this, does this make me a better person?"....
Looking for login, account, time
|
|
Searching Video's for login, account, time
|
advertisement
|
|