Gdpr Cookie Session Time

Can the time limit for cookies for GDPR compliance be extended? I notice that if I hit "ok" the pop-up only disappears for about 24 hours and then the next day I have to agree to it again. Can this time be changed to a longer period of time?