saves the selected study in a cookie