Skip to content

Mukesh Chapagain Blog

  • PHP
    • PHP
    • Laravel
    • WordPress
    • Joomla
  • Magento
    • Magento 2
    • Magento Extension
  • Node.js
    • Node.js
    • Javascript
    • jQuery
  • Database
    • MySQL
    • MongoDB
  • Data Science
    • Machine Learning
    • Recommender System
    • Natural Language Processing (NLP)
    • Sentiment Analysis
    • Python
    • R
  • Categories
    • Blockchain
      • Hyperledger Composer
      • Hyperledger-Fabric
    • Other
      • Cryptography
      • Data Structures & Algorithms
      • Git
      • LaTeX
      • Linux
      • Ubuntu
      • Xubuntu
      • Google
      • Google AppScript
  • About
    • About
    • Contact
    • Privacy Policy

login

Magento 2: Different Ways To Check if Customer is Logged In

December 11, 2021December 7, 2021 by Mukesh Chapagain

This article shows different ways to check if a customer is logged in or not in Magento 2. 1) Using \Magento\Customer\Model\Session class The main issue with this way is that it will not work when page cache is enabled. When page cache is enabled and you use this code, it will not be able to … Read more

Categories Magento, Magento 2 Tags customer, login, Magento, magento2, session 1 Comment

Magento 2: No Administrators role was found, data fixture needs to be run while creating admin user from command line

October 26, 2022October 12, 2021 by Mukesh Chapagain

Tried creating admin user from command line with the following command: bin/magento admin:user:create After completion of the command run, I got the following error in the terminal: No Administrators role was found, data fixture needs to be run When I try to login to the admin via browser, I get this error: More permissions are … Read more

Categories Magento, Magento 2 Tags admin, login, Magento, magento2 1 Comment

Magento 2: Admin Login Error – Your current session has been expired

October 5, 2018 by Mukesh Chapagain

Problem: – I did a new installation of Magento 2.2.5. – While installing it, I had disabled the third party modules installation. – The installation was successful. – Frontend opens fine. – Backend opens fine. – However, when I try to login to backend admin with the correct username and password, I get the following … Read more

Categories Magento, Magento 2 Tags admin, login, Magento, MySQL, problem, session Leave a comment

Laravel: Login Register [Beginner Tutorial]

October 6, 2022November 21, 2016 by Mukesh Chapagain

This beginner tutorial/article shows how you can create a simple/basic user login and registration application using Laravel. In previous Laravel article, I have described in detail about Creating simple CRUD application in Laravel. In the CRUD article, I have described about Laravel folder structure and artisan command line tool. Hence, in this article, we will … Read more

Categories Laravel Tags authentication, laravel, login, PHP, register Leave a comment

CodeIgniter: Add, Edit, Delete, View with Login & Register – MVC CRUD Application

October 6, 2022November 7, 2016 by Mukesh Chapagain

This article shows how to create a simple CodeIgniter CRUD (Create, Read, Update, Delete) application with Login and Registration feature. CodeIgniter (CI) is a PHP framework that helps building a full-fledged web application. This article is a continuation of my past article Simple CodeIgniter CRUD Application tutorial. The tutorial has add, edit, delete, and view … Read more

Categories PHP Tags codeigniter, crud, login, PHP, register 8 Comments

Magento: Redirect Customer to Previous Page After Login

August 19, 2014 by Mukesh Chapagain

By default, customers are redirected to ‘Customer Account Dashboard’ page after login. This feature can be easily changed from Magento configuration settings. Configuration Settings – Login to admin panel – Go to System -> Configuration -> CUSTOMERS -> Customer Configuration -> Login Options – Set: Redirect Customers to Account Dashboard after Loggin in = No … Read more

Categories Magento Tags customer, login, Magento, redirect 5 Comments

Joomla: Admin login problem [Solution]

July 16, 2014 by Mukesh Chapagain

Problem: I moved my Joomla installation from one server to another and now I am unable to login to the admin panel. This case can also happen while moving from one online server to my local machine or moving from local machine to online server. When I go to the administrator login page: http://example.com/administrator/index.php , … Read more

Categories Joomla Tags admin, Joomla, login Leave a comment

Magento: Change Admin Landing / Startup Page

January 7, 2013 by Mukesh Chapagain

Here is a quick tip to change the landing or startup page of Magento Admin. I mean to say, when you login to Magento Admin, you land up on Dashboard page. You can change it to any page you like. For example, you might want to see Orders page (Sales -> Orders) just after you … Read more

Categories Magento Tags admin, login, Magento Leave a comment

Magento: Redirect Customer to Login page if not logged in

December 25, 2014October 10, 2011 by Mukesh Chapagain

If you are developing a module which needs to give access to its content only to logged in user then the preDispatch function will be very useful. This dispatches event before action. Just write the following function in your module’s controller and customer log in is checked before each of your controller action. /** * … Read more

Categories Magento Tags customer, login, Magento 4 Comments
Older posts
Page1 Page2 Next →

About

Mukesh Chapagain Hi, I’m Mukesh Chapagain — a web developer, programmer, and tech enthusiast. Whether you're a beginner or an experienced developer, you’ll find tips, tutorials, and insights to help you navigate the ever-evolving world of technology. Happy coding! 🚀 about...

         

Subscribe via Email



Categories

Most Viewed

  • Very Simple Add, Edit, Delete, View (CRUD) in PHP & MySQL [Beginner Tutorial] - 435,078 views
  • How to Calculate Inverter & Battery Backup Time? - 430,452 views
  • LaTeX: Generate dummy text (lorem ipsum) in your document - 238,158 views
  • GPG: Remove keys from your public keyring? - 203,598 views
  • Magento: How to get attribute name and value? - 189,656 views

Recent Posts

  • Magento: The store that was requested wasn’t found. Verify the store and try again.
  • Magento2: Check Services version on Adobe Cloud Server
  • Magento 2 API: Add Products to Cart & Checkout Place Order
  • Magento 2 API: Create New Customer
  • Magento 2 API: Get Categories

Recent Posts

  • Magento: The store that was requested wasn’t found. Verify the store and try again.
  • Magento2: Check Services version on Adobe Cloud Server
  • Magento 2 API: Add Products to Cart & Checkout Place Order
  • Magento 2 API: Create New Customer
  • Magento 2 API: Get Categories

Most Viewed

  • Very Simple Add, Edit, Delete, View (CRUD) in PHP & MySQL [Beginner Tutorial] - 435,078 views
  • How to Calculate Inverter & Battery Backup Time? - 430,452 views
  • LaTeX: Generate dummy text (lorem ipsum) in your document - 238,158 views
  • GPG: Remove keys from your public keyring? - 203,598 views
  • Magento: How to get attribute name and value? - 189,656 views

Tag Cloud

admin Adobe Commerce api array attribute block category checkout CLI command line crud currency customer Database error extension git Google grid HTML image Javascript Joomla jQuery latex Linux login Magento magento2 magento 2 module MySQL natural language processing NLP nltk nodejs order PHP product python shopping cart template Ubuntu url Wordpress
© 2026 Mukesh Chapagain Blog
Manage Cookie Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}