mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
* HttpSessionState.cs: added Clone (), which makes and exact copy but with a cloned SessionDictionary. When EnableSessionState is set to ReadOnly, we can modify the collection, but changes are not propagated. * ISessionHandler.cs: changed signature of UpdateContext(). * SessionDictionary.cs: added Clone. * SessionInProcHandler.cs: * SessionSQLServerHandler.cs: * SessionStateServerHandler.cs: don't create a new session if the handler do not require it. UpdateContext() now returns an HttpSessionState to the module. * SessionStateModule.cs: removed IsReadOnly as it is now passed as a parameter to the session handler. If the session is read-only, clone it so that it can be changed but changes are not kept. In short, we don't create session objects when not required and we honor the ReadOnly sessions. svn path=/trunk/mcs/; revision=26781