vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   $session[sessionhash] (https://vborg.vbsupport.ru/showthread.php?t=50556)

attroll 03-21-2003 05:56 AM

$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?

N!ck 03-21-2003 06:08 AM

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.

attroll 03-21-2003 06:28 AM

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?

Erwin 03-21-2003 06:54 AM

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.

filburt1 03-21-2003 10:52 AM

Removing the sessionhash (or hiding it) also allows things like Googlebot to crawl your site. GB ignores URLs with sessionhashes.

Overgrow 03-21-2003 02:27 PM

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 :)

filburt1 03-21-2003 02:31 PM

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.

RichieBoy67 04-23-2005 12:54 AM

I know this is an old thread but does this still apply??? Is
PHP Code:

?$session[sessionurl

the same thing???

Brad 04-23-2005 01:34 AM

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.

RichieBoy67 04-23-2005 01:46 AM

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???


All times are GMT. The time now is 05:56 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.01260 seconds
  • Memory Usage 1,733KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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