Ken Yang
Ken Yang

Reputation: 35

How to detection iframe URL jump to another URL

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.

Upvotes: 1

Views: 90

Answers (1)

Zomew
Zomew

Reputation: 51

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.

Upvotes: 1

Related Questions