I know it sounds weird, but i have to time out the session if users changes the url to any other website.
Then I should not allow them to use the same session.
I know it sounds weird, but i have to time out the session if users changes the url to any other website.
Then I should not allow them to use the same session.
You could look at the $_SERVER['HTTP_REFERER'] variable. If it is not from a page in your website then you can destroy the session and start a new one. So the user will have a new session every time they leave / re visit your site.
This would not allow them to use the same session.