Skip to main content

'What happens if the user has disabled cookies'

'What happens if the user has disabled cookies'

Cookies are small amount of information that is used by a website for a variety of purposes like the following:
  1. Authenticating the information (Storing the User Authentication Ticket)
  2. Tracking user activity (Like which sections are most visited etc)
  3. User Preferences

These are almost next to impossible without cookies (unless you resort to complex serverside handling of sessions overburdening the webserver) in the environment of stateless HTTP connections.

Once upon a time, when cookies and Internet was new, people were skeptical about cookies and their personal information being stolen by websites through cookies. There was also a rumor that viruses can spread. These are just dumb rumors. A website can store just upto 20 cookies per domain and the most old cookie gets overwritten when it sets the 21st cookie. Also a cookie is a harmless text file and most browsers disallow more than 4 K per cookie or something like that. And these are some of the quick storage info about cookies:

  • 4 KB per cookie maximum
  • 300 total cookies, for a total of 1.2 Mbytes maximum
  • 20 cookies accepted from a particular server or domain
  • Sometime last week, I encountered a dumb question from one some one regarding a solution to a problem. He was skeptical about using cookies for a non-critical user persistence on the account what would happen if cookies are disabled. I am really getting irritated by such dumb questions in the most advanced and sophistical technology age. Reading from IEBlog, even they have now enhanced the cookie limit per domain from 20 to 50. Check out this post "Update to Internet Explorer's Cookie Jar".

    I think going forward, if some one asks such dumb questions, the reply should be like what Pete O'Hannon gave once in a discussion forum here.


    Popular posts from this blog

    Google NCR

    Google NCRMost of you would be knowing about this trick in navigating to Google generic website. But I just came to know only a few days before and hence thought I would share the information with others too.
    Whenever you type, Google automatically tries to redirect you to your country-specific website. For me, it always redirects to (Google India). But when we specifically want to navigate to Google Generic website for some reason, there are two ways to accomplish the same.Click the 'Go to' link at the bottom of the webpage that is displayed from prevent this redundant click, you can opt to type which would prevent the redirect from happening. The NCR stands for No Country Redirect. There is a brief discussion about this NCR over this forum.You may also like to check out Google help documentation regarding the country redirections from here.

    Elegant 'MailTo' Replacement

    Elegant 'MailTo' Replacement

    MailTo tags have become a bane to all websites since spammers run spam robots which crawl the web to capture the email addresses, add to their catalogs and send spams to them. I just thought of sharing with others a simple JavaScript function which would trigger open the default email client instead of having mailto: embedded in the HTML Page.

    Just have the following function included in your webpage

    <script language='Javascript'>
    function WriteMailTo(user,domain)
    location.replace ('mailto:'+user+'@'+domain);

    And whereever you want to invoke the mailto, just called WriteMailTo('user','') and the user's default email client should be launching (if configured) without any hassles.

    Contacts import utility from Web2Project to Addressbook

    I have been using Web2Project for planning my personal and professional tasks for a few years now. Now I have bifurcated the tools into the following:

    Project PierAddress Book The only issue I had was to import my addressbook from Web2Project to AB. PP is a different animal. It does not serve as a comprehensive candidate for addressbook and hence I needed this bifurcation. 
    I wrote up a following simple script to import the contacts to AB. The pre-requisite for this script is to hop on to PhpMyAdmin, export the contacts as a PHP array and then  modify the path in our import script to whatever you downloaded from PhpMyAdmin.
    Our import script would explode the entries as SQL scripts into the browser window. Copy them and execute into PhpMyAdmin AB database to have the contacts imported.

    Script URL: