Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 05-06-2001, 09:14 AM
Tomeeboy Tomeeboy is offline
 
Join Date: Jul 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just upgraded from vB 1.1.3 to vB 2.0 RC2 tonight and I'm having a weird session problem, which I think is being caused by hacks I have on non-VB pages.

At the moment, I have the user auth system integrated with the entire site. It also displays the visitor's user name on each page, and has a who's online box on each page as well. Global.php is required on every page of the site (to keep track of online visitors, and let visitors use features that are integrated with the VB login system).

While testing the new system with a friend, I noticed that every time he would refresh a page or go to a new page of the site... it would create a new session for him. The result was a sessions table full of sessions for the same user id, and an inflated number of online members. The problem also happens to me when I'm browsing the site, but it doesn't seem to occur with every page load like when my friend is on the site.

The new system hasn't been in place long enough to see if this happens with any other users, but I'm guessing it will.

Anyway, this has me totally stumped, and I'm not sure what would be causing it to create a new session on each page load. If anyone could help, I'd really appreciate it. I've been looking at code and browsing through these forums for the last few hours and have yet to come up with a solution to the problem

Thanks in advance.

-Tom
Reply With Quote
  #2  
Old 05-06-2001, 06:54 PM
Tomeeboy Tomeeboy is offline
 
Join Date: Jul 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone? ....... anyone?
Reply With Quote
  #3  
Old 05-06-2001, 08:07 PM
Mike Sullivan Mike Sullivan is offline
 
Join Date: Feb 2002
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds like a cookie path issue -- your whole site has to have access to the sessionhash cookie.
Reply With Quote
  #4  
Old 05-07-2001, 12:58 AM
Tomeeboy Tomeeboy is offline
 
Join Date: Jul 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried changing the cookie domain value to '.tomeeboy.com' so the whole site could use the cookies. It didn't seem to work though, I'm still seeing multiple sessions being opened for both members and guests :\

Is there something I can do with the cookie save path that might fix it? I'm not exactly sure on what kind of value to set that as.

Thanks,

-Tom
Reply With Quote
  #5  
Old 05-07-2001, 08:10 AM
MrArtic
Guest
 
Posts: n/a
Default

I hade the same type of problem as you on non vbulletin pages, i also use the ./global on every page as you, when you link to the / and whithin the non vbulletinpages remeber to do the links in this way

example:

<a href="pageyouwannalinkto.php?s=$session[sessionhash]">linktext</a>

It solved the problems for me, let me know if it solved your problems
Reply With Quote
  #6  
Old 05-07-2001, 09:00 AM
Tomeeboy Tomeeboy is offline
 
Join Date: Jul 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm... there has to be another way to fix it.... It doesn't make sense that the session would have to be passed in every URL, it should be stored in the cookie file (at least I would think so). If you browse vBulletin forums with cookies, it doesn't even put the session in the url.

-Tom
Reply With Quote
  #7  
Old 05-07-2001, 09:41 AM
fruitsalad fruitsalad is offline
 
Join Date: Nov 2001
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I do something similar on my site. The thing i do different is that I have a seperate version of global.php which is trimmed of a lot of fat not necessary for the non-vb pages. (ie. it is not the global.php from the forum directory)

I do not have the sessions problem that you are describing. Maybe give this a try.
Reply With Quote
Reply

Thread Tools
Display Modes

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 03:29 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03854 seconds
  • Memory Usage 2,208KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (6)postbit_onlinestatus
  • (7)postbit_wrapper
  • (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_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • 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
  • 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