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 03-21-2003, 05:56 AM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default $session[sessionhash]

I am curiouys as to why the ?s=$session[sessionhash] is added on to the end of the links in your header button bars? Why can't you just have forum.php instead of forum.php?=$session[sessionhash]

I may be wrong but isn't this what tracks where the person is for who's online?

The reason I am asking is because I just installed PhotoPost and I was told to take all the ?s=$session[sessionhash] out of the links because it was not needed and it would not work properly with them in there?
Reply With Quote
  #2  
Old 03-21-2003, 06:08 AM
N!ck N!ck is offline
 
Join Date: Mar 2002
Location: Lake Havasu City, AZ
Posts: 886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, it's more important than you think. It tracks sessions for anyone who opts to have their sessions tracked via query strings rather than via cookies.
Reply With Quote
  #3  
Old 03-21-2003, 06:28 AM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If it is that important then why did Scott at Photopost tell me to take it out?

I only took them out of my headers in Photopost. I still have them everywere else. When I have them in my headers in Photopost and I click one of them. For example FORUM then the following shows up in my address bar after it loads the forum.

http://www.mydomain.com/forum/index.php?s=$session[sessionhash]

But when I am anywhere else in my VBulletin and click to go to forums this is what shows up in my address bar.

http://www.mydomain.com/forum/index.php?

If I need to fix this in PhotoPost does anyone know how I do it?
Reply With Quote
  #4  
Old 03-21-2003, 06:54 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Taking sessionhash off will only affect members who have switched cookies off in their browser, or for some reason cookies don't work for them eg. surfing behind a proxy etc.

FWIW, I've removed sessionhash completely from my own forums (not vB) and it has been working well. Mind you, I've made it so that cookies are compulsory to use the site.
Reply With Quote
  #5  
Old 03-21-2003, 10:52 AM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Removing the sessionhash (or hiding it) also allows things like Googlebot to crawl your site. GB ignores URLs with sessionhashes.
Reply With Quote
  #6  
Old 03-21-2003, 02:27 PM
Overgrow's Avatar
Overgrow Overgrow is offline
 
Join Date: Nov 2001
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How are you hiding it from GBot? I've got a few ideas in mind.. in global you check the IP, compare to the bot ips, and if so, strip the hash? Do you care if it has the .php?s= or do you get rid of that as well? Please share
Reply With Quote
  #7  
Old 03-21-2003, 02:31 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using fake flat files so it does't know the difference. All links that GB shouldn't care about crawling like the user CP have the normal vB URLs.
Reply With Quote
  #8  
Old 04-23-2005, 12:54 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know this is an old thread but does this still apply??? Is
PHP Code:
?$session[sessionurl
the same thing???
Reply With Quote
  #9  
Old 04-23-2005, 01:34 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This kind of applies now.

In vB3 the session hash is no longer displayed when it is not needed, or when bots crawl your forum. We no longer have ?s= tacked on to our urls due to better checking.

The other facts still remain, users without cookies need it to remained logged in.
Reply With Quote
  #10  
Old 04-23-2005, 01:46 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RichieBoy67
I know this is an old thread but does this still apply??? Is
PHP Code:
?$session[sessionurl
the same thing???


would it be safe to remove these??? I have noticed on one of the sites that I have worked on a ? on many of the pages.... How can I get rid of this???
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 09:34 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.02625 seconds
  • Memory Usage 2,246KB
  • 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
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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