Monday, April 28, 2008

Prevent Website Disasters

Well tonight I made decision to convert one of my applications from using sessions to cookies. Reason being is when there will be thousands of users using this application I don't want my server to crash. Thankfully with CakePHP it was very easy to change. Sessions take up a lot of resources while a cookie is on the users computer. A cookie can be just as secure as a session if you encrypt it right. I am so happy I switched now so I won't have to deal with headaches later.

No comments: