Sharing set expire date

make sure that a default expire date is set.

fix for #9899