OldFatGuy: Makes one wonder how cookies work though, as it seems a big function of many sites' cookies is to know your general location. Boy won't they be fooled, lol (or, I'm misunderstanding cookies too lol).
Cookies are small bits of text that the server sends to the browser, which are then saved on your machine and then sent back whenever you visit the site with that browser.
For example, a web site might see you connecting from a US-based IP address, and give your browser the cookie "lang=en-us". Then, if you go to Japan and connect using the same browser on the same device, your browser will send back the string "lang=en-us", and the site will then know to send you the English version of the site. Such a site could very well have a button/link that, when followed, sets the "lang=ja-jp" cookie in its place, and then everything will be in Japanese. This happens at the HTTP level, before the page is displayed, though JavaScript can access any cookies not marked http-only.
Cookies can also store login information, so that you don't have to log into the site every time you visit.
Web sites have other ways of storing information on your computer; those methods allow for significantly more storage, but are not automatically sent with every HTTP request. For example, many web games will save your progress that way.
Be aware that, if you are using a private/incognito window, all data saved from the current session will be erased when you close the window. This means that you will no longer be logged in, and that your progress in that web game will not be saved. (Sometimes this is what you want, but it's good to be aware that this will happen.)
OldFatGuy: The Weather Channel dot com was funny. Off, it had my very home town weather come up, even though it's a small town. On, it came up with Los Angeles for some damned reason. lol. Oops, now it's On and it came up with my home town this time. Weird,
It's probably something like this:
* If the site has been given permission to access your location (and your device is equipped with GPS or similar), it sends you weather data for where you are. (Note that this permission request can be denied or not even answered.)
* If your browser sends back a cookie, the server knows where to send you the weather information.
* Otherwise, the site might then use your IP to choose a default location. Note that, if you're using a VPN, you'll get weather from the provider's location, not your own, if this happens.
By the way, there are 2 other use cases for a VPN:
* Sometimes, if you go to school or work (especially if you work remotely), your school or job might provide you with a VPN. Using this will cause you to appear to be on your school or work network, allowing access to things like journals that your school has subscribed to, or servers with confidential data that you need to work with for your job. Generally, it's best to only use this VPN for school or work related things.
* You can also host your own private VPN with some sort of dynamic DNS. This is one way to gain access to your home network from elsewhere. (There's some potential to use this for LAN gaming, as the VPN could, in some cases, appear as a LAN.)