What to use for storing Sessions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

What to use for storing Sessions

Post by Takuma »

Hi,
Does anybody round here know the best way of storing sessions for a login system. I thought of using MySQL and normal PHP session but was wondering if there is any better way.
daemorhedron
Forum Commoner
Posts: 52
Joined: Tue Jul 23, 2002 11:03 am

Post by daemorhedron »

Tough call. For long term session, db's are usually the way to go, short term libmm. Look into session_decode() and session_encode() too, could be useful to you in this case.

HTH.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

thanks i was just here to ask! 8)
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Thanks

Post by Takuma »

Thanks, I will try with DB.
Post Reply