Php

E

Essential eBiz Solutions

I would agree. If you're wanting to hold information on a users interaction for numerous visits, then cookies are going to be best. If it's just to be stored as per each visit the sessions are brilliants from a security point of view.
 
Upvote 0
I have had a dabble with sessions storing visit info in a MySQL database, went quite smooth depending on what info you would be tracking with the cookie. That way you get the added security benefits, and the visitor doesn't get any cookie popups etc (depending on their browser settings).

Regards,

Gordon
 
Upvote 0
As an additional note, people who have their cookies disabled wont be affected if you use Sessions too.

Php sessions will use cookies, look in your cookie cache the default name for session cookies is normally PHPSESSID

Sessions will use cookies by default, otherwise the "session.use_trans_sid" option needs to be set, this is disabled by default.
 
Upvote 0

Latest Articles