PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Elwyyn
New Member
New Member


Joined: Apr 15, 2004
Posts: 6

PostPosted: Thu Apr 15, 2004 6:00 am Reply with quote Back to top

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.
View user's profile Send private message
CodyG
Life Cycles Becoming CPU Cycles


Joined: Jan 02, 2003
Posts: 668
Location: Vancouver Island

PostPosted: Thu Apr 15, 2004 10:18 am Reply with quote Back to top

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?
View user's profile Send private message
diablo
Hangin' Around


Joined: Feb 01, 2004
Posts: 34

PostPosted: Thu Apr 15, 2004 10:32 am Reply with quote Back to top

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?
View user's profile Send private message
Elwyyn
New Member
New Member


Joined: Apr 15, 2004
Posts: 6

PostPosted: Thu Apr 15, 2004 11:06 am Reply with quote Back to top

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).
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Thu Apr 15, 2004 11:56 am Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Thu Apr 15, 2004 11:57 am Reply with quote Back to top

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?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
diablo
Hangin' Around


Joined: Feb 01, 2004
Posts: 34

PostPosted: Thu Apr 15, 2004 2:18 pm Reply with quote Back to top

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?
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Thu Apr 15, 2004 2:20 pm Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Elwyyn
New Member
New Member


Joined: Apr 15, 2004
Posts: 6

PostPosted: Thu Apr 15, 2004 5:09 pm Reply with quote Back to top

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.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum