View Full Version : Php
anwar_auctions
19th May 2007, 09:52
is session is best than cookies for the record of user
openmind
19th May 2007, 12:15
Sessions are more secure in the sense that there is nothing stored on the users computer, the session is captured on the server but cookies are more convenient.
Depends on the data being stored tbh...
Essential eBiz Solutions
19th May 2007, 16:13
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.
gnaldrett
19th May 2007, 20:39
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
stugster
19th May 2007, 21:24
Sessions all the way :) Just be sure you close and destroy the session or you're in trouble! :p
As an additional note, people who have their cookies disabled wont be affected if you use Sessions too.
AlphOmega
19th May 2007, 23:50
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.