CookieHelper MethodsA Sandcastle Documented Class Library
The CookieHelper type exposes the following members.
Methods

  NameDescription
Public methodStatic memberAddData
Helper method that properly adds key, value pairs to a Dictionary.
Public methodStatic memberDecodeFrom64
Converts a string from base 64 to unicode.
Public methodStatic memberEncodeTo64
Converts a string from unicode to base 64.
Public methodStatic memberGenerateCookie
Helper method that generates a cookie by serializing all the key value pairs in the provided dictionary, then encrypts that serilized data and finally sotres it in a generated cookie.
Public methodStatic memberGetCookie
Helper method that aids in the inflation of a cookie.
Public methodStatic memberHasData
Helper method that detects if an entry exists.
Public methodStatic memberInflateCookie
Static method that takes a cookie, decrypts its data, then inflates the data into key value pairs and stores it in a dictionary.
Public methodStatic memberRemoveData
Helper method that properly removes key, value pairs from a Dictionary.
Public methodStatic memberSetCookie
Helper method that aids in the creation of a cookie.
Back to Top
See Also