Automatically logging out

  • Niven
    28th Jul 2012 Member 0 Permalink
    My account keeps on getting logged out of without me doing it. I've literally had to log in 4 times in the past hour, and was wondering if anyone knew what could be causing this. It doesn't usually happen and started today.
  • jacob1
    28th Jul 2012 Developer 0 Permalink
    @Niven (View Post)
    How many places are you logged in? You can only be logged in 3 times at once, and after that, you are logged out somewhere else. I think it should be a little more though. If it's a problem, then log in once in tpt, then copy the user field in powder.pref and paste it in any other powder.pref you want to be logged in at. Then, it sees the same session id, and can't tell the difference.
  • Niven
    28th Jul 2012 Member 0 Permalink
    I should just be logged in at 2 places, including the website, but I am logged in in a different state than usual (Tennessee instead of Kentucky) if that makes a difference.
  • AngrySpam
    28th Jul 2012 Member 0 Permalink
    @Niven (View Post)
    I play TPT on 2 different computers, and I occasionally get logged out for no reason. I always just assumed it was because I can't be logged in on 2 different computers, though.
    But you should listen to jacob1, hes the smart one here.
  • jacob1
    29th Jul 2012 Developer 0 Permalink
    @Niven (View Post)
    @AngrySpam (View Post)
    Each time you log in, you are given a session id. This id is stored in powder.pref, and can be used anywhere until it expires (I'm not sure how long each one lasts). Once it expires, you will be automatically logged out (it will show that it's checking, and then your name will disappear in tpt), and you'll need to log in again to get a new session id. You can only have 3 at one time though, so when you log in more than 3 times, the first one isn't valid anymore. I'm not sure if the id only works on your own IP address or not, that might explain why being in a different place might log you out, since it would know your a different person.

    Before, this didn't happen because your password was stored in powder.def, but that was changed a while ago. I just copy the session ID into every powder.pref I have, so I can be logged in on the website, my mod, the official version, visual studio and anywhere else like tpt++ at once and beat the 3 login limit.