Showing posts with label browser. Show all posts
Showing posts with label browser. Show all posts

Wednesday, June 3, 2015

can not login to magento after installation

Hi guys if you can not login to magento admin panel after installation it's not an issue. All what you need to do is you will have to modify up a file of magento.



Go to:
app\code\core\Mage\Core\Model\Session\Abstract\Varien.php

and look for this code.

$cookieParams = array(
            'lifetime' => $cookie->getLifetime(),
            'path'     => $cookie->getPath(),
            'domain'   => $cookie->getConfigDomain(),
            'secure'   => $cookie->isSecure(),
            'httponly' => $cookie->getHttponly()
        );

        if (!$cookieParams['httponly']) {
            unset($cookieParams['httponly']);
            if (!$cookieParams['secure']) {
                unset($cookieParams['secure']);
                if (!$cookieParams['domain']) {
                    unset($cookieParams['domain']);
                }
            }
        }

you need to comment all of these codes. or you can replace this code with

/*$cookieParams = array(
            'lifetime' => $cookie->getLifetime(),
            'path'     => $cookie->getPath(),
            'domain'   => $cookie->getConfigDomain(),
            'secure'   => $cookie->isSecure(),
            'httponly' => $cookie->getHttponly()
        );

        if (!$cookieParams['httponly']) {
            unset($cookieParams['httponly']);
            if (!$cookieParams['secure']) {
                unset($cookieParams['secure']);
                if (!$cookieParams['domain']) {
                    unset($cookieParams['domain']);
                }
            }
        }*/

After this modification open your admin URL

http://domain.com/index.php/admin

and now try login with the username and password that you have setup on the installation time.

Note: This is tested on magento ver1.9.x

Saturday, May 24, 2014

Securing Login Credentials

In today's fastest going internet technology every popular website is compressing and prompting users for Login Credentials and improving the strength of password credential. They ask you to put strong password like mix and match or characters, numbers, symbols. These mix and match password keep your personal information safe from cybercrooks. But it become hard to remember. The solution is storing password locally. now the browsers have functionality to store your password on your local system. let suppose i am visiting a website http://www.abc.com and on the landing page it prompt for login. Put your login detail and as you put these detail and clicked submit or login browser will prompt you to save password. You need to click on it now if you visit this site latter and as you have opened http://www.abc.com it will come to your system with your login credentials you don't need to put it agian and you can simpally login.


Remember If you are using internet in cybercafe or any other public internet station don't save your password in its computer.

  

Saturday, May 10, 2014

How to make a website responsive without boostrap

Hi every one,

This post will let you know you can make a website responsive without using boostrap. There are some simple css techniques which you have to use like meadia screen, maxwidth, minwith e.t.c.....

what you chould do is you can use first
write the simple css code in your stylesheet for desktop view
for mobile view use @media screen and (max-width: 520px) make all the div{width:100%;}
for image to make it responsite use img{max-width:100%}
you can also use grid.css for your layout

and here it is done. try it once