Which One Is Better To Use ? Session Or Cookies ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Which One Is Better To Use ? Session Or Cookies ?

2nd May 2018, 4:38 PM
MD Omer Arafat
MD Omer Arafat - avatar
4 Answers
+ 2
For a login you defenitly want to start a session for the user with a token. That's what I prefer. Storing metadata like username and language -> cookie. Good luck!
2nd May 2018, 4:50 PM
***
*** - avatar
+ 2
Thanks a lot !
2nd May 2018, 4:51 PM
MD Omer Arafat
MD Omer Arafat - avatar
+ 1
I am developing a social media website ... and i want to use session or cookie in Login section ? which one do you prefer !
2nd May 2018, 4:47 PM
MD Omer Arafat
MD Omer Arafat - avatar
0
Depends on the purpose you want to use it for.. so what is it you seek to do?
2nd May 2018, 4:45 PM
***
*** - avatar