<? session_start(); ?> ... etc ... <frame name="pag" src="http://ruta/path/<?php echo $_SESSION['login1'];?>.cgi">