SycoSyco Posted June 12, 2007 Share Posted June 12, 2007 I'm working on a very large system that I only have partial access too. The bods with full access are out if the office today and I'm having a few problems. I need to take a URL from an email that contains vars in the URL string and go to a login page. The user must log in then get taken to a page where the vars are used. I don't have access to the parent frameset page, only the page within the frame set. I figured I could go to the login page (the URL of the page within the frameset) eg www.site.com/login.php?test=1 and write to the session like this Here's an example if 'test' was in the URL if(isset($_GET['test'])){ $_SESSION['emailed']['test1']=$_GET['test']; } <? } $_SESSION['emailed']['test2']="test"; then bounce the frameset before any output using <script> if (parent.location.href == self.location.href){ window.location.href = '/' } </script> test2 is available after the page is bounced to the parent frameset but test1 is gone. If I don't bounce the page both test vars are available. Any idea where I might be going wrong? Quote Link to comment https://forums.phpfreaks.com/topic/55314-framesets-variables-and-sessions/ Share on other sites More sharing options...
quickstopman Posted June 12, 2007 Share Posted June 12, 2007 well first of all you might wanna change this: if(isset($_GET['test'])){ $_SESSION['emailed']['test1']=$_GET['test']; } <? } $_SESSION['emailed']['test2']="test"; to: <? if(isset($_GET['test'])){ $_SESSION['emailed']['test1']=$_GET['test']; } $_SESSION['emailed']['test2']="test"; and im not sure exactly what you want to do well im a noob thats why Quote Link to comment https://forums.phpfreaks.com/topic/55314-framesets-variables-and-sessions/#findComment-273474 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.