I want to make a login system that redirects a user to his own page, like your bank account. So you can't visit the other user page if you are in.

I have searched the whole web for it but i can't find anything about it, please can you help me?