Log in

View Full Version : How to keep forum session alive on non-forum pages?


mnguyen04
02-06-2011, 05:51 AM
evening all. so I downloaded on of the modules that allows you to login with your forum credentials on NON-forum pages. I'm doing this to have a shared login for the rest of my site.

however, despite still being logged in on the forums, even if I am constantly active while logged in on non-forum pages, I get timed out and logged out.

so my question is, how do i keep the forum session alive on the non-forum pages?

cheers

kh99
02-06-2011, 01:30 PM
Someone was just asking about this - I think the session is kept alive by updating lastactivity in the session table, and it's done as a shutdown query so you need to call exec_shut_down() a the end of your script (which is done by print_output() in most vB scripts). But I guess that assumes that you're including global.php or init.php.

Which module are you talking about?

mnguyen04
02-06-2011, 05:31 PM
thanks for the tip kh99. I'll try out calling that function.

I'm using this module https://vborg.vbsupport.ru/showthread.php?t=173693

--------------- Added 1297023144 at 1297023144 ---------------

looks like calling exec_shut_down() worked. my session has yet to time out. cheers kh99!!