vb.org Archive

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

Colin F 07-12-2004 03:49 PM

$session[what??]
 
Hi

I always have to think when I link something, what that stupid sessionvariable is called. I normally just go to the header template and looking at the
<a href="$vboptions[forumhome].php?$session[sessionurl]">
I use the $session[sessionurl] variable.

Now, while redoing a part of something I hacked, I came across $session[sessionid]. I'm sure I also saw it somewhere, I don't usually just invent something.

So my question is, what is the variable I should be using?

Xenon 07-12-2004 03:53 PM

use $session[sessionurl]

the produces a session string if needed, but not for cookieusers or searchengines.

$session[sessionid] was used a lot in vb2, but i can'T find a place out of mind in vb3 anymore.

Colin F 07-12-2004 03:58 PM

OK, thanks for making that clear :)

Xenon 07-12-2004 04:04 PM

:)

you're welcome

alqadir 08-31-2004 07:01 PM

having the same issue.
I am a little confused on why and what is $session[sessionurl] used for?

Xenon 09-01-2004 11:45 AM

sessionurl variable is used in every url from within vb templates.
The thing behind is to remove sessionids from cookieusers AND search engines to make the urls search engine friendly.

for users without cookies enabled the sessionurl var is filled with the sessionid, so they can browse without loggin in on every page :)


All times are GMT. The time now is 12:54 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.00983 seconds
  • Memory Usage 1,708KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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