hi can you tell me how i can check if user session is active?

i mean i want to be able to check if the user is logged in but i can't fingure it out and i want to integrate it with my current website do you know how to do that?