The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How do I add a session variable?
Hello,
How do I add a session variable? I'm sending users to the following url: http://www.mydomain.com/forums/index.php?ref=abcdef I need to add a session variable for "$ref" so that the value will follow the user around the forum. Thanks in advance! |
#2
|
||||
|
||||
You can pass variables using GET or POST methods. When you pass a variable using somehting like index.php?foo=1, then you can get the value using something like:
$foo = $_GET['foo']; If you use POST methods (ie. in a form), then you must use something like this: $foo = $_POST['foo']; |
#3
|
||||
|
||||
just open misc.php and add a new action there. that new action will point with a $goto to your new url.
simple and efficient. |
#4
|
|||
|
|||
Thanks for the replies.
What I need to do is set the value to a session variable. I don't think either solution does that. Any other ideas? Thanks. |
#5
|
|||
|
|||
Have you solved this?
|
#6
|
||||
|
||||
You would be best to start your own thread in the appropriate forum, and give as much information as possible, as this thread is twelve years old.
|
#7
|
||||
|
||||
See Ozzys reply below, I'm still curious as to why YOU want to do something like this and until you start a new thread and explain we can't be of much help.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|