I am trying to embed global session variables with url using iframe
<p>I am trying to embed session variables to url that are set by another module in drupal 7.When i try to make an iframe the iframe works but my session variables are not embedded with url.  </p>

<p>Any help will be much appreciated.i also checked sessions using devel modules session viewer they are shown there.
Here is the code that i am using in the iframe content type.</p>

<pre><code>&lt;iframe src="http://www.w3schools.com?"$_SESSION['name']""&gt;&lt;/iframe&gt;
</code></pre>