vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   how to keep a user's vBulletin session alive (Where is it in the source code?) (https://vborg.vbsupport.ru/showthread.php?t=195633)

Psalmist 11-07-2008 01:25 AM

how to keep a user's vBulletin session alive (Where is it in the source code?)
 
How do vBulletin sessions work? It appears that it doesn't use PHP sessions. The source code is so complex, I can't find it.

I want to make a simple php page that serves no purpose except to refresh the user's vBulletin session.

Can someone show me the part of the vBulletin source code that does this (so I can simply copy it)?

(We're putting a chat app on our forum site. As long as users are chatting in the chat room, we want them to still be "logged in" to vBulletin. I can make the chat app periodically invisibly retrieve the php page that will refresh their vBulletin session.)

Can someone help?

Thanks!

Lynne 11-07-2008 02:02 AM

I would have thought that including global.php on a page would do it. Did you try that?

Psalmist 11-07-2008 04:06 AM

Quote:

Originally Posted by Lynne (Post 1660908)
I would have thought that including global.php on a page would do it. Did you try that?

Thanks Lynne, that was a really good idea. But no that doesn't work. Apparently it's not that simple. (I even tried including all the code that comes before the require global.php statement in the php files, and it still didn't work.)


All times are GMT. The time now is 08:19 AM.

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.00941 seconds
  • Memory Usage 1,710KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete