cookie writing attempt