Sorry....couldn't follow you well enough to get the big picture. Are you saying that you're trying to pass a temp cookie (contains the session id) from one frame at a certain URL to another frame with a different URL?
I assume you don't have session.use_only_cookies set to true in your php.ini and that PHP can append the session id to the URL in the case that cookies are not accepted by the browser?