Author |
Message |
Elwyyn
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Apr 15, 2004
Posts: 6
|
Posted:
Thu Apr 15, 2004 6:00 am |
|
I've seen this posted on a lot of sites, but no one ever seems to answer ...
On my User Info block I show a blank user logged in. Looking at my database tables I find that it is always someone who is already logged in, usually myself as admin. The IP addresses match. It also happens when a registered user comes to the site, and then logs on. It shows them twice in the sessions table, once with no name, once with their name after they log on. Again, the IP addresses match.
For myself, I have my admin set to the same as my username, so when I log in I'm listed twice, once blank, and once with my username. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
CodyG
Life Cycles Becoming CPU Cycles
![](modules/Forums/images/avatars/186c8977515afcc3ed82a.jpg)
Joined: Jan 02, 2003
Posts: 714
Location: Vancouver Island
|
Posted:
Thu Apr 15, 2004 10:18 am |
|
I use a block called block-User_Menu.php
The code that lists the users online looks like this:
Starting at Line 32:
Code:list($lastuser) = sql_fetch_row(sql_query("SELECT username FROM $user_prefix"._users." ORDER BY user_id DESC LIMIT 0,1", $dbi));
list($newid) = sql_fetch_row(sql_query("SELECT user_id FROM $user_prefix"._users." WHERE username='$lastuser'", $dbi));
$numrows = sql_num_rows(sql_query("SELECT user_id FROM $user_prefix"._users."", $dbi));
$numrows = ($numrows - 1); //removes admin as user
|
See that last line? Does your block have anything like it? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
diablo
Hangin' Around
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Feb 01, 2004
Posts: 34
|
Posted:
Thu Apr 15, 2004 10:32 am |
|
I have a similar problem with my Nuke 6.9. Former members whos accounts i have deleted still appear from time to time in the online table. What causes that? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Elwyyn
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Apr 15, 2004 11:06 am |
|
I did not have that line, so I added it. I deleted the blank entry in the sessions table, went to my site and it added the blank user again (which was me based on IP address). |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Thu Apr 15, 2004 11:56 am |
|
diablo wrote: | I have a similar problem with my Nuke 6.9. Former members whos accounts i have deleted still appear from time to time in the online table. What causes that? | Most often it's a cookie issue. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Apr 15, 2004 11:57 am |
|
Elwyyn wrote: | I've seen this posted on a lot of sites, but no one ever seems to answer ...
On my User Info block I show a blank user logged in. Looking at my database tables I find that it is always someone who is already logged in, usually myself as admin. The IP addresses match. It also happens when a registered user comes to the site, and then logs on. It shows them twice in the sessions table, once with no name, once with their name after they log on. Again, the IP addresses match.
For myself, I have my admin set to the same as my username, so when I log in I'm listed twice, once blank, and once with my username. | Have you tried flushing your cache, deleting your cookies, and THEN deleting the ghost record? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
diablo
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Apr 15, 2004 2:18 pm |
|
Raven wrote: | diablo wrote: | I have a similar problem with my Nuke 6.9. Former members whos accounts i have deleted still appear from time to time in the online table. What causes that? | Most often it's a cookie issue. |
Does that mean they can access the forums etc even though I deleted their account? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Apr 15, 2004 2:20 pm |
|
diablo wrote: | Raven wrote: | diablo wrote: | I have a similar problem with my Nuke 6.9. Former members whos accounts i have deleted still appear from time to time in the online table. What causes that? | Most often it's a cookie issue. |
Does that mean they can access the forums etc even though I deleted their account? | They shouldn't be able to. At most they could only read. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Elwyyn
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Apr 15, 2004 5:09 pm |
|
Quote: | Have you tried flushing your cache, deleting your cookies, and THEN deleting the ghost record? |
I hadn't, but I did and it still shows. I deleted both memory and disk cache, cleared all cookies, cleared the sessions table, and went so far as to re-boot my computer. I then logged on as admin and it shows me as a blank user. When I logged in with my username, it showed the blank user and me. Again, the IP addresses match.
I had a friend log out and clear their cookies, cache etc. They went to the site, then logged in. I looked at the session table and it showed them twice, once blank and once with their name. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|