Session , JWT and Cookies
Session variables store temporary information to use for retrieving and viewing data on multiple web pages. It stores information on the server momentarily and it's far more secure since they are saved in binary or encrypted form and when a user logs out of the program, the stored information automatically deletes.
Cookies are just like session but it is saved on the user's device and the information is not safe. The cookies can be activated or disabled based on a user's needs.
JWT which stands for JSON Web Token is an open industry standard used to share infomation between two entries usually a client and it's mostly used to identify an authenticated user.