1

I have a page login.php use iframe "src=http://def.com/login".

My domain is example.com.This def.com jump to http://def.com/home after logout

I want to my page catch iframe URL jump from http://def.com/home to my page http://example.com/login.php when user logout.

Ken Yang
  • 35
  • 5
  • 1
    You can check: has the cookie variable of `def.com` url created when login, when logout then has that cookie variable removed? Then you can use that cookie variable – Ryan Nghiem May 09 '19 at 02:24
  • 1
    Possible duplicate of [iFrame src change event detection?](https://stackoverflow.com/questions/2429045/iframe-src-change-event-detection) – Oden May 09 '19 at 02:37

1 Answers1

1

You can try to use $_SERVER ['HTTP_REFERER'] to get the refresh page url, if the value is undefined or null, it is accessed directly.

Zomew
  • 51
  • 2