store profile id in cookies also