Added session options

Added session options to avoid deprecation messages