passing session variables in url

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bugthefixer
Forum Contributor
Posts: 118
Joined: Mon Mar 22, 2004 2:35 am

passing session variables in url

Post by bugthefixer »

how can i pass php session variables in url like

check.php?set=1

but if i hav other two session variables

Code: Select all

$_sessionї'test']="foo";
$_sessionї'test2']="folink";
how can i append this to my url
User avatar
Lord Sauron
Forum Commoner
Posts: 85
Joined: Tue Apr 20, 2004 5:53 am
Location: Tilburg, NL

Post by Lord Sauron »

You don't have to pass session variables. Just start the session and the variables are there.
Post Reply