(A time.Time can not be nil, only zero)

Also, this function never returns a zero time, as far as I can tell?   (I assume that session.expires = 0 means to indicate that there is no expiration)