The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
External login logs out after 15 minutes
I've managed to get a script working to login using vB on an external site, but users get logged out after 15 minutes (presumably due to lack of activity, even if I am doing something).
I guess the question is, how do I make vB think the user is doing something while they are "logged in" via my other site? Thanks! |
#2
|
|||
|
|||
There was a thread on this not too long ago. I think the answer is that you should call exec_shut_down() at the end of your script, otherwise the session lastactivity time never gets written to the db.
|
#3
|
|||
|
|||
Here is my login, script. As you can see I do use exec_shut_down()
PHP Code:
|
#4
|
|||
|
|||
OK, but that's your login script, right? You need to do something to get the lastactivity updated when they "doing something" (by which I assume you mean accessing other external pages?). You probably only need to do something like:
PHP Code:
on each of your external pages. |
#5
|
|||
|
|||
Quote:
Thanks! --------------- Added [DATE]1314452078[/DATE] at [TIME]1314452078[/TIME] --------------- It worked What actually is exec_shut_down() by the way..? |
#6
|
|||
|
|||
I don't know everything it does, but I know that some db updates are kept until the end (I suppose to make the page look like it loads faster), and one of those is the one that updates the time that keeps the session active.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|