I need to Implement SSO on my websites on same domain.I have provided a link on website 1 that redirect to website 2.
I need to allow users directly logged in if coming from website 1 link otherwise just by typing url for website 2 should redirect to login page.
On which event I can determine the request source(Requested URL)?