View Full Version : Very quick question about sessionurls
antialiasis
06-01-2006, 03:16 AM
Okay, I was just curious about what exactly the difference between $session[sessionurl] and $session[sessionurl_q] is. vBulletin's online manual didn't help...
Adrian Schneider
06-01-2006, 03:44 AM
Okay, I was just curious about what exactly the difference between $session[sessionurl] and $session[sessionurl_q] is. vBulletin's online manual didn't help...
sessionurl contains the &
sessionurl_q contains the ?
_q is useful if you don't want all of your links to have unnecessary ?s everywhere, and if there is a sessionID, unnecessary &s.
antialiasis
06-01-2006, 01:19 PM
Okay, thanks.
Adrian Schneider
06-01-2006, 09:20 PM
Okay, thanks.
Just to clarify:
$session[sessionurl]
<a href="someScript.php?$session[sessionurl]do=action">blah</a>
-The ampersand is at the END of the string
$session[sessionurl_q]
<a href="someScript.php$session[sessionurl_q]">blah</a>
-The ? is added BEFORE the string
Both are obviously empty if they don't need to be there.
antialiasis
06-01-2006, 10:13 PM
Yeah, I figured from the way they're used.
Just wanted to be sure, that's all.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.