31
josecruz
Re: preventing multiple simultaneous logins *URGENT*
  • 2003/10/12 1:51

  • josecruz

  • Just popping in

  • Posts: 68

  • Since: 2003/3/28


Quote:
I have not tested it yet, just a thought. You could utilize the custom session with GIJOE's hack.

For example, if you set

$online_handler->gc( 300 );

to 5 minutes, you could set the custom session to expire in 4 minutes - in essence, you force the user offline. Any user will have to wait for 1 minute afterwards to log in. This way it will make sure there is only one user in the system.


sorry, I'm not really sure how to work on this "custom session" do you think you could show me what you're thinking in code?

thanks again for the help.

Jose



32
josecruz
Re: preventing multiple simultaneous logins *URGENT*
  • 2003/10/12 1:18

  • josecruz

  • Just popping in

  • Posts: 68

  • Since: 2003/3/28


Wow,

you're right tl, I could log in with a different browser if the first browser was idle for long enough.

This isn't going to do for my situation. Like you said I need to prevent anyone from loggin in as long as that user is laready active.

Any thoughts GIJ?

Jose



33
josecruz
Re: preventing multiple simultaneous logins *URGENT*
  • 2003/10/12 0:31

  • josecruz

  • Just popping in

  • Posts: 68

  • Since: 2003/3/28


Quote:
tl wrote:
Maybe an email to admin noticing the user account of simultaneous login would be even better.


Good idea tl. I'll getto work on making a function for that and I'll post it here when I'm done.

Jose



34
josecruz
Re: preventing multiple simultaneous logins *URGENT*
  • 2003/10/12 0:26

  • josecruz

  • Just popping in

  • Posts: 68

  • Since: 2003/3/28


Quote:
sunsnapper wrote:
I think Jose is more worried about people logging in from different computers at the same time, rather than same computer.
In other words, making it harder for someone to share their password with someone somewhere else.


Actually Sunsnapper, GIJOE's hack is so thorough, you can't even login from different browsers on the same computer. If the level of security is that good, then I'm sure that a different pc would be no better able to get through.

Jose



35
josecruz
Re: preventing multiple simultaneous logins *URGENT*
  • 2003/10/12 0:16

  • josecruz

  • Just popping in

  • Posts: 68

  • Since: 2003/3/28


Wow, you guys have been a great help!!

And to think all of this was being discussed while I was asleep.

Quote:
I am not that technical and always curious and eager to learn. As far as my logical thinking reached, this hack didn't (even cannot) prevend logging in twice from the same pc. That is why I kept asking about this hack.

If my asking sounded somewhat offensive, I am sorry, because that wasn't my intension!


don't worry at all Shine, never any offense taken!

Quote:
But, it also allows another person to log in using the same username five minutes after the initial user having logged in, so multiple logins are still possible. The hack only works in the initial 5 minutes.


I just tested for that now, tl, and even hours after a login on one browser, I still can't login on any other browser or computer. I think you may have misunderstood that parameter and GIJ cleared it up with his explanation already. Still 300 is a little long in my opinion, I think I'll cut it down to 150 for my site.

And a big thanks to you GIJ!! I'll put in that bit of code for updating the online user table right away and tell you how it works out.

Jose



36
josecruz
Re: preventing multiple simultaneous logins *URGENT*
  • 2003/10/11 13:26

  • josecruz

  • Just popping in

  • Posts: 68

  • Since: 2003/3/28


I just tried it Shine, and it doesn't seem to be a problem.

Jose



37
josecruz
Re: preventing multiple simultaneous logins *URGENT*
  • 2003/10/11 12:05

  • josecruz

  • Just popping in

  • Posts: 68

  • Since: 2003/3/28


Tremendous GIJ!!

this is almost exactly what I wanted but I changed the line

$user= false

to

redirect_header(XOOPS_URL.'/user.php',1,_US_MULTLOGIN);

(where I made a new entry in the user.php lang file for "_US_MULTLOGIN")

this way the user knows specifically the cause ofthe login problem. That will be ok, don't you think?

thanks again.

Jose





38
josecruz
Re: preventing multiple simultaneous logins *URGENT*
  • 2003/10/11 7:52

  • josecruz

  • Just popping in

  • Posts: 68

  • Since: 2003/3/28


Sorry about having to bump this topic, but my client is getting itchy about this issue.

If someone can give me a definitive answer about the possibility of controlling multiple logins yes/no either way, then even that would be greatly appreciated.

EVen better does anyone know where I can begin hacking the code for this.

In my wildest dreams, someone already knows how to do what I want, and is willing to tell me.

Some help folks, I need it.

Jose



39
josecruz
Re: Check out my new XOOPS site (Please)
  • 2003/9/21 11:41

  • josecruz

  • Just popping in

  • Posts: 68

  • Since: 2003/3/28


Same for me. Nothing but a blank page except for some odd text strings at the top and the typical lycos ads.

Jose



40
josecruz
preventing multiple simultaneous logins *URGENT*
  • 2003/9/21 5:02

  • josecruz

  • Just popping in

  • Posts: 68

  • Since: 2003/3/28


Hi everyone,

I have noticed that it's possible to login to a XOOPS site using one login name and password, and then turn around to another browser on a different computer (or even on the same computer) and use exactly the same login info on the same site, and XOOPS will still allow the second logon.

As I'm working on a site that uses paid subscriptions, how would I be able to control such multiple logins? For example allowing some login names (for a group of individuals) the ability to have multiple logins, while disallowing it for others (non-group members).

thanks all

Jose




TopTop
« 1 2 3 (4) 5 »



Login

Who's Online

246 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 246


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits