Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
jed
Adept


Joined: 18 Dec 2005
Posts: 246

PostPosted: 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".
Reply with quote
jed
Adept


Joined: 18 Dec 2005
Posts: 246

PostPosted: 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?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: 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
Reply with quote
jed
Adept


Joined: 18 Dec 2005
Posts: 246

PostPosted: 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?
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net