Allow setting custom life time in session cache extension

Signed-off-by: Tom Wright <tom@inflatablecookie.com>