I know that I can set the expiration date for the cookie, but can I make the cookie expire after a while or when the browser is closed?
If you set an expiration date, this will expire that date, regardless of whether the browser is open or closed.
Only cookies that are not saved will be valid after the browser is closed.
See cookie expiration rules on wikipedia.
Source: https://habr.com/ru/post/1305442/More articles:In working jqGrid with subGrid, how can I hide the column where the plus / minus / open icons are fully displayed? - jqgridWhere to place resource mapping in the Liferay-Portlet? - permissionsThe jqGrid hidden plus / minus / open icon column makes the subgrade less wide since the main row is widthHow can I imagine a date and time collector in Asp.Net MVC - asp.net-mvcphp object: get attribute value by computed name - objectHow to bind a WPF command to a MouseEnter event? - commandHow to write tests using mocks using f # - unit-testingdatabase creation date - oracleCheck how old is the Oracle database? - databaseASP.NET MVC - how to get users to confirm deletion - asp.net-mvcAll Articles