PDA

View Full Version : $session[what??]


Colin F
07-12-2004, 03:49 PM
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 :)