read cookie before serving static files
read cookie before serving static files