Welcome Guest, Not a member yet? Register   Sign In
cookies vs ci_sessions
#1

[eluser]natefons[/eluser]
for a high traffic website, what is better to store user data?

cookies or ci_sessions?

im thinking cookies, since all the details are stored client side, rather than on the server database.


can some 1 spread some knowledge about this? emphasis on high traffic
#2

[eluser]WanWizard[/eluser]
You should avoid storing any user data client side. It's not secure, and the storage is very limited.

I never had issues with database sessions, even on high traffic sites. It's one read, and one write (you need to extend CI to get that, by default every session update is a write), on the total query time of a page request it's not much.
If you don't feel like it, you could switch to native sessions, which uses file storage. You can combine that with a caching mechanisms to speed it up even further.




Theme © iAndrew 2016 - Forum software by © MyBB