FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » How to stop recording in the table forumsfud_ses ?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: How to stop recording in the table forumsfud_ses ? [message #27199 is a reply to message #27198] Mon, 29 August 2005 21:57 Go to previous messageGo to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma:
Senior Member
Administrator
Core Developer
Well, you are probably using cookies with long expiry time so sessions can hang around for a long time. if you want to avoid massive build-up of the sessions table, simply running the following query:

DELETE FROM sessions_table WHERE time_sec< NOW() + 2*86400

This will remove all sessions older then 2 days.

High usage forum installs should really be using cron and not adding various hacks to the code. The only reason the hack exists in the place is that not everyone has access to cron.


FUDforum Core Developer

[Updated on: Mon, 29 August 2005 21:57]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Funktions for the regstriation of an User-Session
Next Topic: Calendar Discussion
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 09:26:46 GMT 2024

Total time taken to generate the page: 0.05251 seconds