Jump to content

Cookie Vs Sessions


master82

Recommended Posts

[!--quoteo(post=360338:date=Mar 31 2006, 06:42 AM:name=gzabriskie)--][div class=\'quotetop\']QUOTE(gzabriskie @ Mar 31 2006, 06:42 AM) [snapback]360338[/snapback][/div][div class=\'quotemain\'][!--quotec--]
To txmedic03,

I have been scratching my head for about a week trying to come up with a solution to limiting the number of logins a user can have, and this little forum topic did the trick. Your examples worked great. I already had an authentication for logging in I just added the sessions table and the checks by adding the first part of your code at the top of each page.

I use PEAR so I had to make adjustments to the code for my queries but all in all it was pretty simple. It works great!

Thanks for your contributions, you saved me a lot of time!
[/quote]

I'm glad I could help. As soon as I get a change I'm going to write the "lite" version as well as possibly some improvements I think I might be able to make to the existing code.

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.