PHP Session Purging

September 23rd, 2007

Filed Under: Coding with 4 Comments

I’ve been trying to make a login script that purges the sessions database so that users will only stay inactive for 1 hour until they have to log in again. All seems to be well, but then it just doesn’t work.
This is the code which I have on every page:
$time = date(”ymdHis”);
$cutoff = $time-1000;
$sql = [...]

Tagged: , , , , , ,

CMSing is bloody hard…

September 20th, 2007

Filed Under: Coding, Gaming with 0 Comments

I’ve been working on a custom CMS for a new game development studio. I decided to use PHP’s Smarty Template Engine as it’d make the template system really easy to use. Nope, not at all. Spent 5 hours fixing problems that seemed to all come from the default config settings and leak into the functions [...]

Tagged: , , , , , , , , ,