Sessions work on a per frame basis as far as I know (I've done it like that). To get variables from the URL, use the $_GET supervariable. e.g $string = $_GET['string'];