UrlToken Class

Definition

Allow object instances to serialized to URLs. Base64 can not be stored in URLs due to special characters.

public static class UrlToken
type UrlToken = class
Public Class UrlToken
Inheritance
UrlToken

Remarks

We use Bson and Gzip to make it small enough to fit within the maximum character limit of URLs.

http://stackoverflow.com/a/32999062 suggests HttpServerUtility's UrlTokenEncode and UrlTokenDecode

is not standards-compliant, but they seem to do the job.

Methods

Decode<T>(String)

Decode an item from a url token.

Encode<T>(T)

Encode an item to be stored in a url.

Applies to