filler00 / mytcg-f3

Fat Free MyTCG - Online TCG Management
http://code.filler00.com/mytcg-f3/
GNU General Public License v3.0
11 stars 3 forks source link

Switch to SQL Session Driver #12

Open tooblue opened 8 years ago

tooblue commented 8 years ago

The script is currently using the default Cache based session driver. Need to implement the SQL driver as the default: http://fatfreeframework.com/session#SQL

myubi commented 8 years ago

I was studying a bit on this script and then realize that it's filling up my database with bot information. However the is a cleanup function that can be executed to clean old entries that are not used anymore. And also there is an event that logs suspicious sessions and destroy them. (http://fatfreeframework.com/session#Events). I'm planning on implementing this, what do you think?

tooblue commented 8 years ago

Is the cleanup function a part of F3? I can't find any documentation on it.

The onsuspect event seems like a good idea, feel free to implement and test~

myubi commented 8 years ago

It is part of the coding, but I guess they already make the automatic call. I'll study this a bit better and test the onsuspect as well! :)