Here is a way to find the user logged or not in in custom Drupal Development. It is very usual you will face this question while developing a drupal website. You can use the following snippet to perform that
You are here: / / Check if user is logged in Drupal 7
This site uses Akismet to reduce spam. Learn how your comment data is processed.