fixed request cycle bug, still needs refactor
get cookie values from request context

saved todo