ImageRecent Posts

Pages: [1] 2 3 ... 10
1
Favorite Items Plugin / Re: Listinga without img
« Last post by MB Themes on May 15, 2026, 10:52:51 AM »
Thanks will look on it.
2
Favorite Items Plugin / Listinga without img
« Last post by 149health on May 15, 2026, 08:39:34 AM »
It would be very useful to have a setting that allows displaying only favourited listings with at least one image on main page ???
3
General discussion / Re: How to reduce too many sessions ?
« Last post by MB Themes on May 14, 2026, 08:38:16 AM »
Here is what AI thinks:

What is most likely happening:

PHP session is started for every anonymous visitor/bot request.
Bots often do not store cookies.
Without session cookie persistence, every request creates a brand new sess_* file.
If the site is crawled aggressively (Cloudflare, Ahrefs, Semrush, MJ12bot, AI crawlers, vulnerability scanners, etc.), thousands of sessions can be generated very quickly.

The session content you posted actually supports this theory:

item_ids_i_num_premium_views
alert-related keys
empty form arrays

This looks like frontend visitor state, not some runaway memory leak.

Main issue is usually one of these:

session_start() is called globally on every request.
Sessions are started for guests even when not needed.
PHP garbage collection is ineffective or disabled.
Bots create endless fresh sessions because they do not keep cookies.
Session lifetime (gc_maxlifetime) is too high.
Cleanup probability (session.gc_probability) is too low.
Using filesystem sessions on high traffic sites.

Testing on “multiple VPS servers” does not fully prove anything because:

same PHP configuration may have been copied,
same traffic/bots hit all servers,
same Cloudflare/WAF/crawler environment,
same Osclass/plugin behavior.

A VPS with 48 GB RAM does not protect against filesystem overload if millions of tiny session files are created.

What should actually be investigated:

How often session_start() is called.
Which requests create sessions.
Whether sessions are created for bots.
Whether plugins unnecessarily initialize sessions.
PHP settings:
session.gc_probability
session.gc_divisor
session.gc_maxlifetime
session.save_path
Number of requests from bots without cookies.
Whether Cloudflare bypasses cache and hits PHP for every request.

Best solution is usually:

do not start sessions for guests unless required,
skip sessions for known bots/crawlers,
move sessions to Redis/Memcached,
reduce session lifetime,
add aggressive cleanup cron,
cache public pages properly.

Answer:

issue is real,
not necessarily hosting issue,
but also not proof that Osclass core is broken,
most likely interaction between bot traffic + PHP session handling + session initialization logic.
4
General discussion / Re: How to reduce too many sessions ?
« Last post by slaven on May 13, 2026, 10:45:57 PM »
Checked on multiple VPS hosting and the result is the same - it's not the hosting, it's not the settings.

Only the Osclass script produces such abnormal sessions that it overloads the server.

We are amazed. A miracle unseen!

Configuration:
Type:Virtual Machine
Size:vps CPU 48 RAM SSD 720
Cpu:12 vCore
RAM:48 GB
Disk:720 GB NVMe SSD
---------------------------
5
There is possiblity, but you have not added url nor screenshot or function you are using, so it's quite hard to help you
6
Wrap it to
Code: [Select]
<?php if(osc_is_web_user_logged_in() && osc_logged_user_id() == osc_item_user_id()) { ?>
....
<?php ?>
7
Would it be possible to transform the field where you enter the city into a simple text field and not have all the cities loaded when you choose the region?
8
General discussion / Re: How to reduce too many sessions ?
« Last post by MB Themes on May 02, 2026, 09:06:27 PM »
I believe this is hosting related, as this question appears once a year or so.
Several possible reasons like wrong folder for session, no auto cleanup or server specific configuration/issue.
9
How can I make the phone number field visible only to the author of the publication?
10
General discussion / Re: How to reduce too many sessions ?
« Last post by 149health on April 30, 2026, 07:44:50 PM »
Are you using shared hosting? The function for deleting sessions is most likely disabled there. Clean them up via a cron job—when a bot crawls without cookies, it creates thousands of sessions.
Pages: [1] 2 3 ... 10