vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Logout globally - Beta (https://vborg.vbsupport.ru/showthread.php?t=45804)

Stadler 11-16-2002 10:00 PM

Logout globally - Beta
 
Well, what I'm trying to reach with this hack, is, that you can logout globally with it, no matter on how many browsers/computers you have your cookies saved.

This hack saves the time of creation of your user and password-cookies and if you logout, it updates the new lastlogout-field. If you try to login with a cookie, that has a creation time older than lastlogout, the cookie will be deleted. Thats it.

Pfew, I hope, you unterstood what I'm trying to tell you. :knockedout:

Now I need some people, that help me testing and sorting out bugs for that hack.

I haven't tested it on a live forum, yet, but maybe I do some testing, later today.

Erwin 11-17-2002 05:18 AM

Good idea.

To clarify this hack -

Normally, if you logout, you only log out for the computer you're on. If you go to the forums with another computer, you have to log out of that computer as well.

With this hack, when you logout, you automatically log out of every computer you have logged into the forum with.

I don't have a use for it, but it's a great idea. Especially if you logged in on a public computer and forgot to log out... and you can't get back to that computer to log out.

Darth Cow 11-17-2002 06:14 AM

Good idea, but your method isn't very secure - one can simply edit the time in the cookie. I think that encoding the time into the password part of the cookie (used for authentication) would be the most effective solution, but that would require storing each of the valid login times for each user in the database (you couldn't do a simple numerical comparison because the password/date would be MD5'd).

Dean C 11-17-2002 08:39 AM

Awesome...

I'll definately use this once a few people have confirmed it works :)

Regards

- miSt

Stadler 11-17-2002 09:03 AM

Quote:

Originally posted by Darth Cow
Good idea, but your method isn't very secure - one can simply edit the time in the cookie. I think that encoding the time into the password part of the cookie (used for authentication) would be the most effective solution, but that would require storing each of the valid login times for each user in the database (you couldn't do a simple numerical comparison because the password/date would be MD5'd).
Well, you're right, but the encryption, that would be used, has to be two-way, because it needs to be checked, if the cookie is older or newer, than lastlogout.

Stadler 11-17-2002 11:16 AM

I've applied some changes and fixes, so please recheck the attachment.

Changes and fixes are as follows:
  • I now use $ourtimenow instead of time()
  • I've updated member.php?action=login, because I forgot to apply some changes there.
  • As for Darth Cow's idea: I've added the md5-hash of $ourtimenow to the cookie "bbcookietime"

Xenon 11-17-2002 02:55 PM

The hack seems to be a very good idea, as erwin said, this can be very helpful if you forgot to logout on a public pc...

Brad 11-17-2002 06:46 PM

very good idea :), im also releasing a global login point in the next few days.

Julio 11-18-2002 12:18 AM

1 - I think this is one of the most important hacks ever made.

2 - I installed the hack, but now I can't login with any username. Even admin, or any other account. Any idea?

- Lucky I always install hacks to one of my 2 local testboards! -

ManagerJosh 11-18-2002 03:27 AM

Definitely got my installation! Anyone from the vB3 dev team want to add this in? :D


All times are GMT. The time now is 11:18 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01036 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete