FlyingIsFun1217 Posted June 11, 2008 Share Posted June 11, 2008 Hey! I have an iFrame (I had to; just don't ask), and within it, I want to set a cookie for an administrative password. I know there are problems with doing this (for example, my own browser sets the cookie, but deletes after a new page is loaded), but is there a way to set the path so that the browser thinks it's coming from the main page and not an iFrame (I would imagine not, or this would be exploited quite often)? Thanks for the help! FlyingIsFun1217 Quote Link to comment https://forums.phpfreaks.com/topic/109673-solved-cookies-win-iframes/ Share on other sites More sharing options...
FlyingIsFun1217 Posted June 11, 2008 Author Share Posted June 11, 2008 Now I'm starting to wonder if it's just the iFrame content that can't access it. I did a quick rewrite to have the login screen as a parent window (not in an iFrame), and it goes through logging me in correctly; it just doesn't complete the check right (which is a simple check to see whether or not the cookie exists)... FlyingIsFun1217 Quote Link to comment https://forums.phpfreaks.com/topic/109673-solved-cookies-win-iframes/#findComment-562764 Share on other sites More sharing options...
FlyingIsFun1217 Posted June 11, 2008 Author Share Posted June 11, 2008 I guess it's a good thing nobody took the time to reply; I've redone all my pages to use a CSS layout with div sidebars (and each page being static), so I don't really have this problem anymore. Thanks! FlyingIsFun1217 Quote Link to comment https://forums.phpfreaks.com/topic/109673-solved-cookies-win-iframes/#findComment-563250 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.