Jump to content

Best practice for writing session data to table other than 'sessions' ...


phpdawg

Recommended Posts

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

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.