are client side and they can not store any kind of data inside.
Session are set by “SessionMode” Attribute.
[ServiceContract (SessionMode = SessionMode.Required)]
Following enumeration value’s are possible for this attribute.
- Allowed: Specifies the contract supports the reliable sessions if the incoming connection supports them. Here Session can be allowed.
- Not Allowed: Contract never supports reliable sessions.
- Required: Specifies that the contract requires a reliable sessions at all time. Means session is mandatory.
One More thing if your exception is not handle properly session will be destroyed along with that with exception but if it is handled by FaultException at the service end then it will works fine for subsequent methods calls.