Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-29-2005, 07:19 PM
vedman vedman is offline
 
Join Date: Jul 2005
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Need help with sessions not being recorded on non-VB pages (3.5.1)

I kinda doubt that this issue is common, but I'm hoping someone out there will be able to offer some advice. My problem deals with sessions, and probably requires a solid familiarity with vbulletin 3.5.x code.

I have a website that is partially integrated with my forums. The forums are located at "/forums"; the main site and all of its pages are located at "/". I want users to be signed in all over the entire site, so I have this code in the header of all pages outside of the forums.

PHP Code:
chdir('forums/');
require_once(
'./global.php');
chdir('../'); 
I have a login box form which passes what it needs, including a redirect value which, after logging the user in, goes back to the page they were on, even outside of the forums. This (and the userid and primary groupid) are really all I make use of with the integration on my non-forum pages.

This has worked just fine for months, on vBulletin 3.5 RCx to 3.5 Gold. I upgraded to 3.5.1 over the weekend, and it still works perfectly .... except for one thing: sessions.

For some reason, now sessions are not being updated in the forums session table when a site visitor (guest OR member) visits a page outside of the forums.

Before the upgrade, the session table was updated whenever a visitor accessed any page with global.php included in it. For example, the session table locations would look something like:

/index.php
/forums/index.php
/forums/poll.php
/contests.php
/index.php
/forums/showthread.php?t=34983
/tourn.php
/contests.php
....etc

I upgrade from 3.5 Gold to 3.5.1, and now my sessions table looks something like:

/forums/index.php
/forums/poll.php
/forums/showthread.php?t=34983
/forums/index.php
/forums/poll.php
/forums/showthread.php?t=34983
...etc.

Pages located outside of the forums should be showing up in the session table... because they are being visited. But, no.

It appears that the session update is being bypassed, but after comparing the changes in class_core, init, global, functions, functions_online, and a couple of other vb pages, I can't figure it out. Out of the few changes that were made in those pages, nothing that would be dependant on the root path of the script has changed, that I saw.

I even backtracked the code from the UPDATE to `session` (I think that's in save(), in class_core.php). After spending hours comparing the updated forum pages to the previous version and making sure my options and plugins are all working, I'm close to giving up.

Can anyone offer any advice? Neither my cookie domain, nor path (nor any other HTTP/cookie settings) changed with the upgrade, but could it still be a cookie thing, or have something do with lastactivity in the cookie?

Much thanks ...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:28 PM.


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.03016 seconds
  • Memory Usage 2,203KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete