1.) Is there a way i can check if a cookie was created in a particular session?

2.) Does anyone knows the easiest way to check if a user was logged in or not before opening a page?