0

I'm using Laravel for my Website. I have used iframe for certain pages. In the blade file, when button clicks, there appears a accordion and in accordion, there is iframe.

But Main issue is here. When I only work in iframe, if the session expired, the iframe goes to login page, but the parent bloade file doesn't. It only requires the reload.

I want logout parent page too when iframe is logged out. Hoping to wonderful answer. Thank you

1 Answers1

0

You can pass event from iframe to parent div.

Please see this.

Are there any key value system in post message in iframe communication

lovecoding
  • 581
  • 1
  • 3
  • 18
  • well, I can even detect the src change in iframe. But I can't detect the event of logout in iframe. So would you please help me with this? https://stackoverflow.com/questions/2429045/iframe-src-change-event-detection – GlobalKnowledge Apr 01 '20 at 08:51
  • Well, you can logout when src changes login route. – lovecoding Apr 01 '20 at 08:52