ketant Posted October 3, 2007 Share Posted October 3, 2007 Hi, Basically I have 2 separate sites. On site 1, I have index.htm which has an iframe that links to content.php on site 2. Site 1 is password protected. What I'm trying to do is only access to content.php on site 2 only if you are logged into site 1. Currently if you go to content.php it by passes site 1 and allows access. I'd want it to redirect to site 1 and ask the user to login, and also only open content.php in the iframe. Any help would be appreciated. Quote Link to comment Share on other sites More sharing options...
shocker-z Posted October 3, 2007 Share Posted October 3, 2007 use seeions with session_start() at the very top of every page as this should transfer the sessions via the iframe and you can check they are logged in before showing the content. you set sessions values using $_SESSION['sessionname']='value of the sessionname'; Regards Liam Quote Link to comment Share on other sites More sharing options...
ketant Posted October 3, 2007 Author Share Posted October 3, 2007 Thanks Liam, I'll give that a try. Quote Link to comment 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.