Skip to content
MagePsycho Blog
MagePsycho Blog
  • Magento 2 Extensions
    • Customer Experience
      • M2 Customer Group Selector Pro
      • M2 Customer Redirect Pro
      • M2 Store Restriction Pro
    • Checkout / Sales Motivation
      • M2 Region & City Manager
      • M2 Sales Promotion Pro (FREE Gift)
    • Payment Gateways
      • M2 E-Path Payment
    • Import / Export
      • M2 Mass Importer Pro (Price)
  • Free Extensions
    • Developer Tools
      • M2 Easy Template Path Hints
      • M2 Preview/Visit Catalog
    • Sales / Admin
      • M2 Disable Customer Registration
      • M2 Custom Shipping
    • Catalog / Pricing
      • M2 Product Attachment
      • M2 Product Discount Label
      • M2 Store View Pricing
      • M2 Cart Discount Limiter
    • SEO / Marketing
      • M2 SEO Suite
  • Services
  • Blog
  • Magento 2 Extensions
    • Customer Experience
      • M2 Customer Group Selector Pro
      • M2 Customer Redirect Pro
      • M2 Store Restriction Pro
    • Checkout / Sales Motivation
      • M2 Region & City Manager
      • M2 Sales Promotion Pro (FREE Gift)
    • Payment Gateways
      • M2 E-Path Payment
    • Import / Export
      • M2 Mass Importer Pro (Price)
  • Free Extensions
    • Developer Tools
      • M2 Easy Template Path Hints
      • M2 Preview/Visit Catalog
    • Sales / Admin
      • M2 Disable Customer Registration
      • M2 Custom Shipping
    • Catalog / Pricing
      • M2 Product Attachment
      • M2 Product Discount Label
      • M2 Store View Pricing
      • M2 Cart Discount Limiter
    • SEO / Marketing
      • M2 SEO Suite
  • Services
  • Blog

Home » customer_login

customer_login

How to check if the customer is already logged in from another location?

June 22, 2019May 1, 2012 by Raj KB

In order to check whether the current user is logged in or not, we can easily find out using the following code: if(Mage::getSingleton(‘customer/session’)->isLoggedIn()){ //customer is logged in } Note: This code only checks the current session of a customer using the current browser. Case: Suppose if a user with email: [email protected] is already logged in …

Read more

Categories Magento Tags current user, customer, customer_login, event-observer Leave a comment

Search Blog

Categories

  • Apache (4)
  • Javascript (4)
  • jQuery (7)
  • Latest (11)
  • Linux (14)
  • Mac OS-X (3)
  • Magento (74)
  • Magento 2 (16)
  • Mysql (13)
  • Nginx (2)
  • PHP (11)
  • Ruby (1)
  • Updates (4)
  • Web Service (2)

Recent Posts

  • Change Table Prefix for Magento 2 DB (After Installation)
  • Fix Region/State Dropdown not Loading on New Account Creation Page
  • Tinkerwell: Tinker with your local/remote PHP & Magento 2 Code
  • How to Install Multiple Versions of PHP on Ubuntu?
  • Import Product Reviews in Magento via SQL

Archives

Quality Magento Commerce extension & service provider since 2009

Connect with us

Navigation

  • About Us
  • Services
  • Rewards Program
  • Affiliate Program
  • Privacy & Policy
  • Terms & Conditions

Support

  • Contact Us
  • Submit Ticket
  • FAQs

Resources

  • Blog
  • Knowledge Base
  • Documentation
  • Sitemap
  • We Accept
© 2026 MagePsycho Store. All Rights Reserved.