why is this so in Gmail?

computeridiot007

computeridiot007

@computeridiot007-xUubel Oct 14, 2024
guys i have so many doubts i will ask those in a regular manner.....I like crazyengineers so much .It will satisfy my all my technical starvation.
My first doubt actually when we are logging in if we are giving password how is it quickly telling that you have entered wrong password ( in case if we typed wrong ).whether it will actually acess the database or not...what is happening actually technically.
And one more after logging while we are browsing inside inbox,sentmail in gmail whether the contents will be downloaded to cache

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Anil Jain

    Anil Jain

    @CrazyBoy Apr 28, 2010

    When you try to login in any website, first thing website does is authetication of your user credentials. Website sends your user name / Password in an encrypted message to auth DB. At auth DB a query is fired to validate the user credentials. If it get the success message, DB provide a token to webservice to move further and have interaction with other DB's to fethc the data for that user. In other case DB returns the faliure message and you see the error message on web.

    Not sure about question 2?

    -CB
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Apr 28, 2010

    And one more after logging while we are browsing inside inbox,sentmail in gmail whether the contents will be downloaded to cache
    I think these all are stored in mail server not sure about cache ,Do you mean system cache or browser cache ?
  • Kaustubh Katdare

    Kaustubh Katdare

    @thebigk Apr 28, 2010

    computeridiot007
    guys i have so many doubts i will ask those in a regular manner.....I like crazyengineers so much .It will satisfy my all my technical starvation.
    My first doubt actually when we are logging in if we are giving password how is it quickly telling that you have entered wrong password ( in case if we typed wrong ).whether it will actually acess the database or not...what is happening actually technically.
    Authentication is not intensive and it happens on the server side. The total number of bytes transfered isn't a huge number so its quick. Different systems implement different setups for authentication. On CE, we encrypt all the passwords (even admin can't read them!) and the authentication occurs in the database on the server. If the username/password combination is right; the user gets logged in. Else an error message is displayed.

    computeridiot007
    And one more after logging while we are browsing inside inbox,sentmail in gmail whether the contents will be downloaded to cache
    Most modern systems run on AJAX technology; which is asynchronous JavaScript. When you are browsing inbox, on the information you need is displayed. As you click on the links, only the required information is fetched; which reduces the server load and processing time.

    To the best of my knowledge, the contents are not downloaded to the cache. It however depends mostly on the functioning of browser, I believe.