phpdawg Posted June 30, 2008 Share Posted June 30, 2008 Hello all, Here is the skinny: I'm storing sessions in a db table called 'sessions'. It works great, no problems at all. But, I need to store one of the variables (let's say $ip, for discussion sake) in a different table that's more permanent and with no garbage collector. I need to update this on each page. What I am wondering is what is the best practice for doing this? Put a db query in its own included file at the beginning of each page? I don't want to do something too dumb like have multiple queries in the wrong place or whatever. Any feedback for this noob? ----- OSX 10.5.3, PHP 5.2.5, MySQL 5.0.45 Link to comment https://forums.phpfreaks.com/topic/112590-best-practice-for-writing-session-data-to-table-other-than-sessions/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.