Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.