DotNetJS is a solution that provides user-friendly workflow for consuming .NET C# programs and libraries in any JavaScript environment.
jCookies, a jQuery plugin, makes getting and settings HTTP Cookies a breeze. jCookies allows the storage of any type of data: strings, arrays, objects, etc. Data is stored in the cookie as JSON data. Also you can retrieve data using server side code such as C# and PHP.