Elxis CMS Forum

Support => Security => Topic started by: jorgebravoc on July 25, 2011, 03:07:09

Title: Too many users....
Post by: jorgebravoc on July 25, 2011, 03:07:09
Hello pals:

I have noticed that my website has way too many users "logged in" but they are all visitor as I am the only user that is actually logged in as a user.

Currently Logged in Users
There are 8335 users and visitors online.

So I wanna know how to get rid of this... I think that it is slowing down the loading time of my website.. is not bad but there is a short delay when loading the graphics. Anybody knows how to flush these connections? From what I see a few are real visitors but others seem to be robots or crawlers... so annyoing.

I have Elxis 2009 the one just before Aphrodite and I haven´t updated to Aphrodite cause there is no patch released and I sure won´t uninstall the current version and install a new one, instead I will make the changes indicated in this topic:  https://forum.elxis.org/index.php?topic=5144.0

I hope that would be enough in terms of "updating" but does anybody know how to get rid of this too many users problem? and how to prevent from being slammed by "visitors" that I´m sure are not real people.

Thanks a lot
Title: Re: Too many users....
Post by: datahell on July 25, 2011, 09:00:22
Most probably session.save_path php configuration option is not writeable or not existing folder, so in each click a new session is being generated as the previous one can not be stored. You should fix this option. 
Elxis administration -> System -> php settings -> see the value of session.save_path directive. Contact your web hosting provider for more.
Title: Re: Too many users....
Post by: jorgebravoc on July 25, 2011, 12:06:22
I contacted my hosting provider and they said that the tmp folder is writeable and I see the folder, so it does exist and it is writeable.... it might be something different going on...
Title: Re: Too many users....
Post by: datahell on July 26, 2011, 19:34:23
The tmp folder might be writeable but are you sure that your session.save_path is set to that folder??? If open base dir restriction is enabled in your server the tmp folder must be inside your allowed paths. Please login in elxis admin, go to system infrmation and copy-paste me here the local value of session.save_path. I am almost sure that sessions on your server are not propebly configured...
Title: Re: Too many users....
Post by: jorgebravoc on July 26, 2011, 19:50:42
I sent you a private message with my settings Datahell
Title: Re: Too many users....
Post by: wbread on July 27, 2011, 02:11:18
There are 8335 users and visitors online.
.... From what I see a few are real visitors but others seem to be robots or crawlers... so annyoing.

you see the total number of users on the counter on the site?
you may have set too high for the lifetime of the cookie

administration-->Global Seting-->Server-->Login Session Lifetime

the more time the more visitors to the site is listed, but they are not on site
Title: Re: Too many users....
Post by: webgift on July 27, 2011, 09:30:44
Login Session Lifetime has to do with users (not visitors) who has already logged in on your website, wbread.
This issue occurs from session.save_path settings - permissions.
Title: Re: Too many users....
Post by: wbread on July 27, 2011, 12:32:53
I have considered all the visitors, after a decrease in the Login Session Lifetime, the number of online users(visitors) greatly reduced
on the counter on the site and on the admin page - users, visitors and bots
Title: Re: Too many users....
Post by: jorgebravoc on July 28, 2011, 04:04:11
I tried to reduce the session lifetime to 990 from 990000 ( I just did't want to get logged out after a while being working on the site from backend).... so now I have 9 visitors which is much more healthy than 8,000... so I hope this helps from now on.

Thanks a lot !!
Title: Re: Too many users....
Post by: datahell on July 28, 2011, 09:17:12
...session lifetime to 990 from 990000...

990.000 seconds is 11,5 days....  :o  This is why you had too many visitors...
Title: Re: Too many users....
Post by: wbread on July 28, 2011, 09:43:33
I just did't want to get logged out after a while being working on the site from backend
1800 = 30min
usually enough, but 15 minutes enough, more often to keep the article in the writing
Title: Re: Too many users....
Post by: jorgebravoc on July 29, 2011, 09:24:06
I guess I learned the hard way....  thanks again for the support