0
What do you prefere to use SESSION or COOCKIE
2 Answers
+ 10
You should use both. Cookies are client side and Session is server side. If a piece of data is static or not likely to change across users, store it in a cookie. If the data is specific to a user, store it in the session.
HOWEVER. maybe you want the end user to stay logged in when they next open their browser. Then you should use a cookie
0
good answer