Added cookie functionality

for cross site annoyance