put cookie auth in seperate file

Signed-off-by: Sven Nierlein <sven@consol.de>