The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
![]() Quote:
This method would have to stay active until each logged in user has viewed the forums, and until then without additional coding no users could log in. If you know about cookies you might be able to reset vbulletin's cookie and then use one to save the info when they try and log-in again. |
#12
|
|||
|
|||
![]()
Hmm is there possibly a piece of code that I could add to my index.php file so that when the user browses to that page the system will reset their cookies causing them to logout? Then along with that piece of code I could specify how long the user is allowed to stay logged in until they get logged out and have to log in agian... For example something like ...
PHP Code:
|
#13
|
||||
|
||||
![]()
i restart my vps server, that clears everyone out
|
#14
|
|||
|
|||
![]() Quote:
If you have access to your whole sever, you could reset its stored sessions, which should log out all users. |
#15
|
|||
|
|||
![]() Quote:
![]() |
#16
|
|||
|
|||
![]()
I may have spoken too quickly on that last comment. I was under the impression that you could clear sessions since they are (at least partly) sever sided, however I'm not sure exactly where they are saved or how to clear them.
Better suggestion - use a php script that writes a session such as $_SESSION['flush'] = 1; to mark the user has already seen the script, if they haven't viewed the script yet redirect them to the logout page. Code:
<? session_start(); if ($_SESSION['flush'] != 1) { $_SESSION['flush']= 1; header( 'Location: /login.php?do=loguserout&u='.$bbuserinfo[userid] ) ; } ?> |
#17
|
||||
|
||||
![]() PHP Code:
|
#18
|
|||
|
|||
![]() Quote:
![]() Quote:
|
#19
|
|||
|
|||
![]()
If you only need to firce logout once (or not often) then clearing the session table and changing the cookie prefix in your config.php should do the trick.
|
#20
|
|||
|
|||
![]()
Ohhh that's a good one too. Would I need to do both or could I just clear the session table?
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|