Topic: Passing variables

I have two snippets. In one I have assigned two variables and then from that snippet I call another snippet where they are used. Problem is they are not available (blank) in the second snippet. Can someone please tell me how I can resolve that.

snippetA:

<?php
$url = "http://$myserver:8080/status" ;
$file = "myfile.tmp" ;
echo Snippet::get('snippetB');
?>

snippetB:

<?php  echo "URL:$url";  ?>
<?php  echo "FILE:$myfile";  ?>

Thank you...

Re: Passing variables

I don't think Variables can be passed between snippets.

using the sessions class would be the best method.

Session::set('user', 'Awilum');

echo Session::get('user');