Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Gentoo Forums Feedback
  • Search

session not able to track read topics [RESOLVED]

Having a problem with the forums? Have a suggestion? Post here!
Post Reply
  • Print view
Advanced search
10 posts • Page 1 of 1
Author
Message
pingtoo
Advocate
Advocate
User avatar
Posts: 2185
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

session not able to track read topics [RESOLVED]

  • Quote

Post by pingtoo » Thu Oct 17, 2024 2:35 pm

Not sure if any body else experience this. My session seems not able to track topic been read. It is continue show as un-read topic. This happen to me yesterday afternoon (EST).

I remember I seen this happen in the past. This usually lead to forums software stop function later.
Last edited by pingtoo on Thu Oct 17, 2024 3:50 pm, edited 1 time in total.
Top
Max Steel
Advocate
Advocate
User avatar
Posts: 2324
Joined: Mon Feb 12, 2007 6:35 pm
Location: My own world! I and Gentoo!

  • Quote

Post by Max Steel » Thu Oct 17, 2024 2:38 pm

I get this error every now and then. When this happens i get it working again by deleting all cookies in my browser and relogin.
mfg
Steel
___________________

Heim-PC: AMD Ryzen 9 5950X, 64GB RAM, RX 9070 XT
Laptop: AMD Ryzen 5 7640U, 32GB RAM, Radeon onCPU Graphics
Arbeit-PC: AMD Ryzen 3 Pro 7335U, 16GB RAM, AMD Radeon Graphics (leider WSL2)
Top
grknight
Retired Dev
Retired Dev
Posts: 2565
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Thu Oct 17, 2024 3:04 pm

I gave up on this being automatic as it quickly breaks.

I simply rely on using the "Mark all topics read" link on a forum to keep track.

Also, the "You last visited on" time on the main page seems to be the basis of this feature.
Top
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

  • Quote

Post by szatox » Thu Oct 17, 2024 3:10 pm

I had something like that a while ago; there is a cookie that holds recently visited posts. Deleting it should fix things.
I actually had better results deleting only this one cookie than deleting all cookies set by FGO.
Make Pipewire a system service
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2185
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Thu Oct 17, 2024 3:49 pm

Thanks to all those reply. I should check my browser cookie jar to clean up.
Top
grknight
Retired Dev
Retired Dev
Posts: 2565
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Thu Oct 17, 2024 4:52 pm

What I believe is happening is the serialized PHP array, which is then html encoded, is hitting the cookie max size limit (4096 bytes) and then just being rejected by browsers (and possibly servers) as invalid.

As it stores topics and UNIX timestamps as key/value, the size of the numbers and encoding along with the number of topics people read increase exponentially and quickly run out of space for a cookie.

Yes, you can temporarily clear out the Session cookie but the issue is likely to return particularly if persistent login is enabled.

I doubt there is a real fix with this old software, but maybe one day it can work as intended.
Top
grknight
Retired Dev
Retired Dev
Posts: 2565
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Fri Oct 18, 2024 1:27 pm

I can easily replicate this issue and it is the phpbb2mysql_t cookie.

Every time a topic is viewed, this cookie increases in size 31 bytes on average. Once the reader hits over 130 topics read, with modern times and topic numeric size, the cookie sent back is no longer valid and rejected by the browser.

Unless the browser clears the cookie, the forum software is not smart enough to do on its own. I believe that the forum is counting on "closing the browser" to clear a session cookie. However, they don't seem to do that as easily. I can logout, close the tab, close the browser and this cookie persists.

I know it is beating a dead horse to try to fix phpbb2, but I wanted to share my findings.
Top
Hu
Administrator
Administrator
Posts: 24403
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Fri Oct 18, 2024 1:31 pm

Thank you for the findings. Even if the forum software is not fixed, your results should help other users who want to delete only the bad cookie, without wiping out the rest of their state.
Top
grknight
Retired Dev
Retired Dev
Posts: 2565
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Fri Oct 18, 2024 2:26 pm

Ah, phpBB does account for this, but not well enough due to the popularity of the forum and 32-bit time().
https://gitweb.gentoo.org/proj/forums.g ... mscvs#n573 :

Code: Select all

if ( count($tracking_topics) >= 150 && empty($tracking_topics[$topic_id]) )
Since we are under 150 before an invalid cookie, it breaks very easily.

Strangely enough, posting a topic or reply looks for a count of 100.
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2185
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Fri Oct 18, 2024 3:41 pm

grknight wrote:I can easily replicate this issue and it is the phpbb2mysql_t cookie.

Every time a topic is viewed, this cookie increases in size 31 bytes on average. Once the reader hits over 130 topics read, with modern times and topic numeric size, the cookie sent back is no longer valid and rejected by the browser.

Unless the browser clears the cookie, the forum software is not smart enough to do on its own. I believe that the forum is counting on "closing the browser" to clear a session cookie. However, they don't seem to do that as easily. I can logout, close the tab, close the browser and this cookie persists.

I know it is beating a dead horse to try to fix phpbb2, but I wanted to share my findings.
Thanks for the information.

I can confirm this behavior. I usually don't always keep my machine turn on for more that two days. But my current session have been up for more than two weeks and I do persist login. So it is exact match.
Top
Post Reply
  • Print view

10 posts • Page 1 of 1

Return to “Gentoo Forums Feedback”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic