This project is read-only.


MongoSession.cs and Disconnect


Hey guys,

Thanks for this great project!

I noticed that you call _server.Disconnect(); in MongoSession.cs

This create issues, specially if you use a replica set, it's not recommended to call Disconnect.

"The C# driver has a connection pool to use connections to the server efficiently. There is no need to call Connect or Disconnect; just let the driver take care of the connections (calling Connect is harmless, but calling Disconnect is bad because it closes all the connections in the connection pool)."
Closed May 24, 2013 at 4:30 PM by F0rc0sigan
I removed disconnect by your advice.
Refactored mongoprovider and roles to use only one instance of mongosession


F0rc0sigan wrote May 23, 2013 at 5:35 PM


Thanks for you feedback. Will review and implement. Looking forward for your next proposals.

How do you look on implementing some simple wpf application for managing membership data? Justwant to know your opinion. Or maybe make both wpf and web so you can have choice?


mkempe wrote May 26, 2013 at 7:23 AM

Hey F0rc0sigan,

Not sure about WPF, I don't have much experience using it.
Would be good to add a Session Provider, maybe merging this project with


F0rc0sigan wrote May 26, 2013 at 8:07 AM

Hello Mathieu,

I am not sure exactly, but it looks like session provider is not included in SimpleMembership at all. But you yhink it woul be great to add it?

Thanks for help,