Below is a sample config.web file used to configure the session state settings for an ASP.NET application:
configuration>
<sessionstate
mode="inproc"
cookieless="false"
timeout="20"
sqlconnectionstring="data source=127.0.0.1;user id=<user id>;password=<password>"
server="127.0.0.1"
port="42424"
/>
</configuration>
.
Hope this will give an idea to you.