What is the proper way to handle logins?
Posted: Fri Feb 13, 2009 2:42 pm
I'm doing my first web app from scratch and it's time for me to create the log-in. My app will need to allow users to log-in to edit their profile. In the future I will be adding e-commerce for upgraded accounts.
I know the two ways to tackle this problem are through cookies or sessions. I know a lot of sites use log-in cookies. However some sites do use sessions.
Does anyone have any insight on which is the "proper" way to handle log-ins, and why one way is better than the other.
So far I understand cookies are low impact on the server, while the sessions need more server resources.
I know the two ways to tackle this problem are through cookies or sessions. I know a lot of sites use log-in cookies. However some sites do use sessions.
Does anyone have any insight on which is the "proper" way to handle log-ins, and why one way is better than the other.
So far I understand cookies are low impact on the server, while the sessions need more server resources.