 |
jed Adept
Joined: 18 Dec 2005 Posts: 246
|
Posted: Mon Sep 01, 2008 3:35 am
[2.36] Sessions changing names when copied and pasted |
I've just created sessions for four of my characters on my mud. I did this by right clicking on the first session, then copy it and paste it. After pasted, I change the name of the session, and the character name. Then I repeat the process. However, after I paste a copy of a session and rename it, it changes the character name in the session it was pasted from to the character I just put in. i.e. I copy and paste the session "jed on fox", then change the name of the newly pasted session to "doc on fox" and change the name of the character to "Doc" and when I do it changes the character name "Jed" in the "Jed on fox" session to "Doc".
|
|
|
 |
jed Adept
Joined: 18 Dec 2005 Posts: 246
|
Posted: Mon Sep 01, 2008 3:57 am |
So I've just seen the session ID, accessed through #session. I'm thinking that a session ID can only store one username and password? If this is the case, my problem would make sense as all of my sessions have the same session ID.
I'm thinking this is the way it works, soooo, I think I need simply to change the session id for each of my characters on the same mud. Does this sound right? |
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Mon Sep 01, 2008 9:57 am |
Yes. Every session ID should be unique.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
 |
jed Adept
Joined: 18 Dec 2005 Posts: 246
|
Posted: Tue Sep 02, 2008 2:32 am |
Ok, so I've created a different session ID for each session. each is unique but I still have the same problem. One thing I will say, is that all of the sessions use the same .pkg file as their main file. Could this be the problem? I was under the impression that the character and password info were stored in sessions.db and sessionkeys.db, which would be independent of the .pkg file. Do I need to have a separate main .pkg file for each session as well as a unique session ID?
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Sep 02, 2008 5:15 pm |
Sounds like a bug with the copy/paste. CMUD stores your character name/password in the separate sessionkeys.db file where the passwords can be strongly encrypted. So there is a pointer from a record in the sessions.db file that points to the name/password record in the sessionkeys.db file. Sounds like when using copy/paste to copy a session, the new session still points to the original name/password record so now you have two sessions pointing to the same data. None of this is stored in the *.pkg file, so that shouldn't be the problem.
Anyway, I'll add this to the bug list to look into more carefully. |
|
|
 |
|
|