how to disable cookie in magento

There follow simple procedure , you can disable cookie in your magento cms
app/code/core/Mage/Core/Model/Session/Abstract/Varien.php

  1. go to App folder
  2. go to Code folder
  3. go to Core folder
  4. go to Mage folder
  5. go to Model folder
  6. go to Session folder
  7. GO TO Abstract folder
  8. go to Varien.php file

open it and find there

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

disable or comment these three following lines
            // ‘domain’   => $cookie->getConfigDomain(),
            // ‘secure’   => $cookie->isSecure(),
            // ‘httponly’ => $cookie->getHttponly()