How to recognise logged in user?
<p>I just made the registration form for my website, however I have zero knowledge on how to remember the user is logged in through the session. I think I could simply store his IP on a Table on my database when authenticated and remove it when he logs out.</p>

<p>Is there anything wrong about this approach? If there is what should I do instead of it?</p>
