Cookie stuff and query stuff on server - works