What is “shva” in Gmail's URL?

℡╲_俬逩灬. 提交于 2019-12-03 09:18:36

The acronym stands for "Should have valid authentication" as noted here:

http://googlesystem.blogspot.com/2010/07/gmails-shva-parameter.html

As others have noted, 1 is the default value.

If I'm remembering correctly, back when they were working on the current version of the interface, you could preview it by setting shva=2 instead of the default. That version is now the default and you can't get the old version, so shva does nothing now.

It may be used again in the future, who knows?

But every website try to make the URL shorter so they ideally shouldn't add redundant data to the URL...

This is self-evidently not true. Look at StackOverflow URLs for a perfect example. This post:

http://stackoverflow.com/questions/1692968/shva-in-gmails-url-what-is-this

could just as easily be (it works):

http://stackoverflow.com/questions/1692968

I don't think anyone worries these days about the extra couple bytes of data involved with an extra query string parameter.

appu

Some of them saying it is" should have valid Authentication". We shall consider it OK.

But the real expansion of shva is "security host verification and authentication".

It always comes when you open Gmail.

Omnipresent

We won't know what it 'exactly' means unless someone inside Google answers your question. But my guess would be that it has to do with security and encryption. Nothing happens when you change it because it is part of the cookie as well. So when you change it they must also compare it with what is set in the cookie.

"shva" is an acronym for "should have valid authentication". Apparently, the parameter is only included after a successful authentication.

The 1 is the default value applied to the parameter check. It's also a shorthand way for programmers to say true, 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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!