I recently noticed that when opening my Gmail account, the URL gets changed to ?shva=1#inbox
at the end (this can be noticed in the address bar).
This happens not only to my Gmail ID, but to others as well. This make me think that Gmail provides a common interface to all its users and changes it accordingly.
What happens in the background, and what does the shva=1#inbox
part mean?
Best Answer
When you log in, the system wants to know if it's a valid account or whether it should kick you back to the login screen.
The
1
is the default value applied to the parameter check. It's also a shorthand way for programmers to saytrue
, like when you have successfully logged in.The other part,
#inbox
, tells Gmail to load up your inbox as the first screen. You can change that to one of the other folders (or even labels you've created) to load them up.E.g.,
https://mail.google.com/mail/?shva=1#sent
will show your Sent folder items.https://mail.google.com/mail/?shva=1#label/narwhals
will load up your "narwhals" label.Gmail, like many web services, serves a standard interface that will change to show only your information and data when you've logged in.
The particulars are referenced on their end through the use of an ID from the cookies or sessions generated after the login screen.