<p>I've to admin a small website for my alumni group which is hosted by my ISV. The url is something like www.myIsv.com/myWebSite/ which is quite ugly and very forgetable. The main admin of the webserver has registered a domain name www.mysmallwebsite.com and put a index.html with this content:</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;www.mysmallwebsite.com&lt;/title&gt;
&lt;/head&gt;

&lt;frameset&gt;
   &lt;frame src="http://www.myIsv.com/myWebSite/" name="redir"&gt;
      &lt;noframes&gt;
        &lt;p&gt;Original location:
          &lt;a href="www.myIsv.com/myWebSite/"&gt;http://www.myIsv.com/myWebSite/&lt;/a&gt;
        &lt;/p&gt;
      &lt;/noframes&gt;
 &lt;/frameset&gt;  
&lt;/html&gt;
</code></pre>

<p>It works fine, but some features like PHP Session variables doesn't work anymore! Anyone has a suggestion for correcting that?</p>

<p>Edit:
This doesn't work both on IE and on Firefox (no plugins)</p>

<p>Thanks</p>

What do you mean?
Are you saying that when you go from www.mysmallwebsite.com to www.myIsv.com/myWebSite/ then the PHP session is lost?
PHP recognizes the session with an ID (alpha-numeric hash generated on the server). The ID is passed from request to request using a cookie called PHPSESSID or something like that (you can view the cookies a websites sets with the help of your browser ... on Firefox you have Firebug + FireCookie and the wonderful Web Developer Toolbar ... with which you can view the list of cookies without a sweat).
So ... PHP is passing the session ID through the PHPSESSID cookie. But you can pass the session ID as a plain GET request parameters.
So when you place the html link to the ugly domain name, assuming that it is the same PHP server (with the same sessions initialized), you can put it like this ...
```
```
www.myIsv.com/myWebSite/?PHPSESSID=<?=session_id()?>
```
```
I haven't worked with PHP for a while, but I think this will work.