added signed cookie implementation.