Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

how to save cookie in iframe

Featured Replies

hello

i have a Q and i hope i find a reply

i made a login page which use cookies and when i put this page in iframe

it stopped saveing the cookies and it not work

 

 

i wanna to ask how to use cookies within iframe??

and if no solutions - i don't hope that - what is the alternatives?

 

thanks

hello

i have a Q and i hope i find a reply

i made a login page which use cookies and when i put this page in iframe

it stopped saveing the cookies and it not work

 

 

i wanna to ask how to use cookies within iframe??

and if no solutions - i don't hope that - what is the alternatives?

 

thanks

Im confused why do u need to use iframes at all when u can use php includes to get the same effect? iframes really is not a good way of doing things

Im confused why do u need to use iframes at all when u can use php includes to get the same effect? iframes really is not a good way of doing things

 

Iframes are not acceptable nowdays, infact im suprised browsers even support them.

  • Author

first of all thanks for reply

 

i know that iframe isn't good in most situations cuz search engines not index it,

 

but actually it is useful in alot of other situations like facebook like button which put on other websites it uses iframe and google adsense it uses iframe too.

 

the situation of my code is similer i want to include a login page in a blogger in blogsot so i can't use include function in this problem but i can use iframes.

 

the problem now is that i can't access cookies from this iframe but in facebook like box which uses iframe too but they can access cookies so they can show me login inside the iframe and that what i ask about, How to access cookies inside the IFrame :)

 

hope i find a solution or alternative for this situation ...

 

thanks again for trying to help

  • Author

i found the solution

 

add this to top of php code

 

 

header ( "p3p:CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");

 

and it appear works with me

 

thanks for all who try to help :)

i found the solution

 

add this to top of php code

 

 

header ( "p3p:CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");

 

and it appear works with me

 

thanks for all who try to help :)

See told u google helps lol

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.