PDA

View Full Version : Stay Logged In while on non-vbulletin pages


Eliasen
07-03-2011, 02:06 PM
Hi everyone,

I have making a website where I use the vbulletin as the backbone.

All my non-vbulletin pages includes:


$curdir = getcwd ();
chdir('/home/myaccount/public_html/my-website.com/forum');
require_once('/home/myaccount/public_html/my-website.com/forum/global.php');
chdir ($curdir);

if($vbulletin->userinfo['userid'] < 1){
header("Location: login.php");
exit();
}


How can I make it, so that if you are browsing the website (the non-vbulletin pages) you won't get logged out automatically due to "inactivity"?

I hope I make sense.

Thanks!

--------------- Added 1309732944 at 1309732944 ---------------

No one? Can this even be done?

Eliasen
07-05-2011, 05:16 PM
Anyone at all? Ideas, hints anything?

Lynne
07-05-2011, 06:02 PM
You should follow this guide for your pages - [HOW TO - vB4] Create your own vBulletin page (https://vborg.vbsupport.ru/showthread.php?t=228112)

Eliasen
07-05-2011, 06:03 PM
Thanks, I will look at it now :)

kh99
07-05-2011, 06:05 PM
Can this even be done?

I think the activity time is updated as a "shutdown query", and they normally get executed at the end when you call print_output(). But you're probably not calling that. I think you might be able to add a call to exec_shut_down() at the end of your code to take care of it. (You may have to include includes/functions.php).

Eliasen
07-05-2011, 06:26 PM
Ohh I see, thanks will give it a look :)

--------------- Added 1309895499 at 1309895499 ---------------

Seems to work if you execute the exec_shut_down(), thanks kh99!