Log in

View Full Version : Sessions or Cookies?



Fehm
03-05-2009, 06:19 PM
Hey

Just a really quick 'debate', which would be the better to use, Sessions or Cookies?

Need it for a little project (Not HabboCMS, i dont think) im doing....

Thanks,
Callum

Jam-ez
03-05-2009, 06:50 PM
I'd personally say sessions, just for personal preference - then again I think there is reasons both ways why not to use one or the other.

DeejayMachoo$
03-05-2009, 07:10 PM
Why not use sessions with a remeber me option for a 30 day cookie?

Agnostic Bear
03-05-2009, 07:40 PM
Cookies.

Mentor
05-05-2009, 08:24 AM
Depends. If you need to store information over an exstended period of time cookies. If you want it for the sessions, the very name alone gives you a clue. Technically sessions uses cookies anyway, it just stores a session id which relates to a data set on the server, the big advantage being you can store alot more data with alot more variety without the need for 40 cookies :)

Source
05-05-2009, 11:50 AM
Surely an issue with cookies is people can easily change/modify there values with addons like add/edit cookie for firefox. Sessions rely on the sessionID and a server-side dataset meaning the user can't change the variables.

Want to hide these adverts? Register an account for free!