Skip to content

Dipin Krishna

I love to code. If you feel the same, then i have some cool codes for you. They are simple but good to get started.

  • Home
  • Blog
  • Privacy Policy
  • About
  • Contact
  • Home
  • Blog
  • Privacy Policy
  • About
  • Contact

Tag Archives: login

Home/Posts Tagged: login

iOS LOGIN Screen Tutorial with Server Authentication – JSON – PHP

Mar 24, 2012Dipin Krishna218 CommentsiOS, Objective Cdevelopment, http, https, ios, ipad, iphone, JSON, login, POST

This tutorial will guide you to create a simple app with a Login screen which takes username and password from the user and then posts it to a url and parses the JSON response form the server.

magento-webshop

Magento: Check if an admin is logged in or not

Jan 17, 2011Dipin Krishna6 CommentsMagento, PHPadmin, check, custom, login, magento, module, php

If you are writing a custom module, and you want it to be accessed only by admins, then you possibly need the following code in your controller. //get the admin session Mage::getSingleton(’core/session’, array(’name’=>’adminhtml’)); //verify if the user is logged in to the backend if(Mage::getSingleton(’admin/session’)->isLoggedIn()){ echo "Admin Logged in"; } else { echo "You need to

Read More

Search

Theme by Think Up Themes Ltd. Powered by WordPress.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok