Jump to content

[SOLVED] Cookies w/in iFrames?


FlyingIsFun1217

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/109673-solved-cookies-win-iframes/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.