NationStates Jolt Archive


NationStates URL & autologin

[violet]
31-10-2005, 11:33
There's been a little change to remove the "cgi-bin/index.cgi" bit from NationStates URLs, and to allow you to go straight to a nation (either yours or someone else's) by entering "http://www.nationstates.net/<name>". E.g.: http://www.nationstates.net/testlandia.

As an unfortunate side-effect, players may find that their autologin has stopped working. You can reset this by going into your nation's "Settings," making sure that "Log in automatically?" is set to "Yes", and clicking the "Update Settings" button.

If you can't remember your nation's password, get it emailed to yourself from here:

http://www.nationstates.net/target=forgot_password

Edit: If you visit http://www.nationstates.net/cgi-bin/index.cgi, your old autologin will work, but if you visit http://www.nationstates.net/, it may not. (The autologin cookie can only be read when 'cgi-bin' is in the URL.) So if you've forgotten your password and can't log in, type in the longer URL, get autologged in, visit Settings, and click "Update Settings." This will store a new autologin cookie which will work with the shorter URL in future.
EFTO
31-10-2005, 18:15
I followed the above instructions and yet auto-login is still not working for me. It has always worked in the past and none of my computer's settings have been changed since then. Any ideas?
[violet]
02-11-2005, 03:02
You can work out what's happening by watching what happens to your nationstates 'autologin' cookie when you click "Update Settings." Exactly how you do this depends on your browser; in Firefox for Windows I think it's Tools --> Options --> Privacy --> Cookies --> View Cookies. Then look for a Site Name of "www.nationstates.net" and a Cookie Name of "autologin". This should vanish when you turn off autologin and "Update Settings" and be re-set when you turn it back on.

You could also try manually deleting the cookie, and entering the site via the short URL (http://www.nationstates.net) vs the long one (http://www.nationstates.net/cgi-bin/index.cgi).
Gruenberg
02-11-2005, 13:07
It seems we still need to use cgi-bin/...data.cgi/ in the URL to get the nation/region XML feed. I assume this won't change?
EFTO
02-11-2005, 18:43
']You can work out what's happening by watching what happens to your nationstates 'autologin' cookie when you click "Update Settings." Exactly how you do this depends on your browser; in Firefox for Windows I think it's Tools --> Options --> Privacy --> Cookies --> View Cookies. Then look for a Site Name of "www.nationstates.net" and a Cookie Name of "autologin". This should vanish when you turn off autologin and "Update Settings" and be re-set when you turn it back on.

You could also try manually deleting the cookie, and entering the site via the short URL (http://www.nationstates.net) vs the long one (http://www.nationstates.net/cgi-bin/index.cgi).


Okay I tried all of this, and ran a few tests, and it appears that entering the site using http://www.nationstates.net works fine, but using http://nationstates.net does not work. The latter is what I was using; I'll now switch. You may want to take a look at fixing that, though.

Thanks for your help.
Itinerate Tree Dweller
02-11-2005, 20:25
Awesome! :) I really like this.
[violet]
03-11-2005, 04:48
It seems we still need to use cgi-bin/...data.cgi/ in the URL to get the nation/region XML feed. I assume this won't change?
Correct: the XML feeds remain at http://www.nationstates.net/cgi-bin/nationdata.cgi and http://www.nationstates.net/cgi-bin/regiondata.cgi. Ditto with a few other scripts. The change only affects URLs that previously required you to start with "cgi-bin/index.cgi/".
[violet]
03-11-2005, 04:50
it appears that entering the site using http://www.nationstates.net works fine, but using http://nationstates.net does not work.
Ah yes, you are correct. I'll see about fixing that, but in the meantime, people should stick with the "www."
Gruenberg
03-11-2005, 15:25
']Correct: the XML feeds remain at http://www.nationstates.net/cgi-bin/nationdata.cgi and http://www.nationstates.net/cgi-bin/regiondata.cgi. Ditto with a few other scripts. The change only affects URLs that previously required you to start with "cgi-bin/index.cgi/".

Thanks.
[violet]
04-11-2005, 04:50
entering the site using http://www.nationstates.net works fine, but using http://nationstates.net does not work.
Fixed for autologins set from now on. That is, until you next "Update Settings", you still need to enter via the "www..." URL for autologin to work. But once you've done that, or if your nation is younger than today, it's optional.
Gruenberg
04-11-2005, 05:05
Hmm. I just logged out of Gruenberg, and now can't seem to log out of a puppet I created today. When I try to Update Settings to change the Login Automatically option to No, it simply takes me back to my national description. If I log out, the logged out screen appears for a second, and then I'm back into the puppet. It could just be that I need to delete the autologin cookie...what's it called? I can't seem to find a nationstates.net or similarly named one. I'm using www.nationstates.net, not nationstates.net. Am I missing something obvious?
Sarzonia
04-11-2005, 05:09
I just noticed that yesterday. You CAN still access your NationState through the extra verbiage (at least for now), but I really like how clean the new setup is.

Good job. :)
[violet]
04-11-2005, 09:11
Hmm. I just logged out of Gruenberg, and now can't seem to log out of a puppet I created today.
There were a few transitional issues as we moved from the old cookies (www.nationstates.net) to new cookies (nationstates.net). In particular some players got very screwy results if they were logged in while I implemented the change--this is probably why you couldn't log out. The fix for this is simply restarting your browser (which always logs you out of NS).

Autologin was also a bit flaky for the first few hours but should be working properly now, with one exception: some players may have an old autologin they can't clear that only activates when you enter the game via the old, long URL (http://www.nationstates.net/cgi-bin/index.cgi/). I haven't implemented a fix for this yet, but you can have the old autologin removed by clicking here (http://www.nationstates.net/cgi-bin/clearcgicookie.cgi).

If anyone wants to manually clear out their cookies, look for cookies called 'autologin' under 'www.nationstates.net'.
Gruenberg
04-11-2005, 12:26
Yeah, it seems to have cleared now. Thanks.