Which option do you havein PHP to set the expiry date of session

Hi,

I just came across with a above question. There are four options

a.Set the session.duration directiv in php.ini
b.set session cookie expiry locally via session_set_cookie_params
c.set session expiry date locally via session_cache_expire()
d. none of above

My answer is B BUt the correct answer is D …!!!

Any idea…