Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Out of body experiences

Quote Reply
Out of body experiences
One of the mods on my forums reported that he was logged in clicking around and then suddenly it showed him being logged in as someone else. This just happened to me too now-- any ideas why? I had full options to the non-me user's profile/messages etc and could post as her, so it's a problem.


Realiiity.com Forums
Quote Reply
Re: [ellipsiiis] Out of body experiences In reply to
Yikes!

Can you reproduce it? What does this mod do, exactly?

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [ellipsiiis] Out of body experiences In reply to
Well like I said, it happened to me too today, and it was just random, I clicked one place I was me, I clicked another I was Tokyojoan or something. I continued clicking around and stayed as her until I logged out.

I can't reproduce it unfortunately. No one else but the other mod has reported it happening but if the person were using the same template set as you it probably wouldn't be terribly obvious.


Realiiity.com Forums
Quote Reply
Re: [ellipsiiis] Out of body experiences In reply to
Oops, sorry, I read "mod" in your first message as "modification" - as in, you had modified the forum.

As far as I can see, the only way this could happen is if you somehow ended up with identical 30-something random character strings. I've added some code to 1.1.2 to make sure this doesn't happen. Can you do me a favor and change the code to see if it happens again for you?

In admin/GT/Session/SQL.pm:
Code:
94c94,98
< $self->{info}->{session_id} = generate_session_id();
---
> my $sid = generate_session_id();
> while ($self->{tb}->count({ session_id => $sid })) {
> $sid = generate_session_id();
> }
> $self->{info}->{session_id} = $sid;
Basically what you need to do is change line 94 (the first line, prefixed by '<') to the 5 lines prefixed by '>'.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com

Last edited by:

jagerman: Mar 13, 2002, 10:07 AM
Quote Reply
Re: [jagerman] Out of body experiences In reply to
Does that while() loop keep generating new id's if a match is found in the database?

pretty cool.

Edit: Surely the first line isn't needed?

Last edited by:

RedRum: Mar 13, 2002, 9:36 AM
Quote Reply
Re: [RedRum] Out of body experiences In reply to
In Reply To:
Surely the first line isn't needed?
Sure it is - there has to be a session ID to check for.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [jagerman] Out of body experiences In reply to
Yep but isn't that what:

my $sid = generate_session_id();

does?
Quote Reply
Re: [RedRum] Out of body experiences In reply to
What first line are you talking about? The line starting with a < is to be taken out, replaced with the lines starting with a >.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [jagerman] Out of body experiences In reply to
My bad Blush

Well on the bright side I was right with my answer :)

Last edited by:

RedRum: Mar 13, 2002, 9:45 AM
Quote Reply
Re: [jagerman] Out of body experiences In reply to
Thanks, I put it in and will let you know (although it has only happened twice since November :)).

The other thing I forgot to mention was we're running under Perlex, so I don't know if it was somehow cached or something (I'm not sure how it works even though we're running it :))


Realiiity.com Forums