title: How to secure profile links from unregistered users?
body: <p>I want to ask if I had given the link of a logged in user and then I go to that link without logging in, then how can I secure data. I mean it can be possible that his private messages can be seen by unregistered user. So I am making a website and I want to secure data from unregistered users. Can anybody help?Also can anyone tell me how can I redirect the link to Login page when the unregistered user try to open the above link? </p>