The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
$session['sessionurl'] no value in showthread.php - why?
Folks,
I'm trying to pass the current session over to an external script near the end of showthread.php but $session['sessionurl'] has no value. Which is odd because it is used all over the place and I thought it always had a value. Any idea why not? Thanks. |
#2
|
|||
|
|||
Did you make $session a global? Can you access other $session variables?
|
#3
|
||||
|
||||
Thanks MarcoH64,
this is a slight modification to showthread.php just before the PHP Code:
I tried [sessionhash] aswell but that was empty, too. |
#4
|
|||
|
|||
$session['sessionurl'] only holds a value if you are not using cookies i think. Same goes for the other $session elements if i am not mistaken.
You are either using cookies, or $session. |
#5
|
||||
|
||||
Ah ok, Marco, so do you know how I can pass session information to an external script, please?
|
#6
|
||||
|
||||
trying using $_SERVER['REQUEST_URI']?
Quote:
|
#7
|
|||
|
|||
You should never trust any information that comes from outside a script. Always validate it before using.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|