ChangeLog 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  1. 2007-08-08 Marek Habersack <[email protected]>
  2. * SessionDictionary.cs: do not use lock (this), replace it
  3. with lock (this_object), where this_object is an instance
  4. variable. Prevents deadlocks in situation when external code locks
  5. on the class instance.
  6. 2007-06-20 Marek Habersack <[email protected]>
  7. * SessionInProcHandler.cs: use HttpRuntime.InternalCache to keep
  8. private entries.
  9. 2007-01-26 Hubert FONGARNAND <[email protected]>
  10. * SessionSQLServerHandler.cs: differentiate session between applications
  11. this require to add an AppName column to the aspstatetempsessions table
  12. 2007-01-20 Miguel de Icaza <[email protected]>
  13. * SessionDictionary.cs: Removed unused variable (dirty).
  14. 2006-12-20 Marek Habersack <[email protected]>
  15. * SessionStateServerHandler.cs: relay on the SessionId random
  16. generator.
  17. * SessionId.cs: moved the random number generator to here.
  18. * SessionInProcHandler.cs: use this implementation only for the 1.x
  19. profile.
  20. * SessionStateModule.cs: use this implementation only for the 1.x
  21. profile.
  22. * SessionSQLServerHandler.cs: use this implementation only for the 1.x
  23. profile.
  24. * SessionInProcHandler.jvm.cs: use this implementation only for the 1.x
  25. profile.
  26. * StateServerItem.cs: use this implementation only for the 1.x
  27. profile. Also use UTC for access times.
  28. * HttpSessionState.cs: use this implementation only for the 1.x
  29. profile.
  30. * RemoteStateServer.cs: use this implementation only for the 1.x
  31. profile.
  32. 2006-12-06 Robert Jordan <[email protected]>
  33. * SessionSQLServerHandler.cs: Prepare the SQL statements.
  34. Patch from Hubert FONGARNAND. Fixes bug #80170.
  35. 2006-10-12 Hubert FONGARNAND <[email protected]>
  36. Patch from Hubert FONGARNAND
  37. * SessionSQLServerHandler.cs (selectCommand): Instead of using
  38. SELECT * for pulling the data out of the ASPStateTempSessions, use
  39. the explicit column names. This allows users to change the table
  40. and not have any undesired side effects for our code.
  41. (ReadBytes): This patch corrects a bug too in ReadBytes. The index parameter
  42. was not properly used when calculating the size of the data.
  43. 2006-09-03 Robert Jordan <[email protected]>
  44. * SessionSQLServerHandler.cs: persist and handle the "timeout" and
  45. "expire" properties of the session. Fixes bug #78281.
  46. Patch by Boris Dores <[email protected]>.
  47. 2006-08-08 Vladimir Krasnov <[email protected]>
  48. * SessionInProcHandler.jvm.cs:
  49. * SessionStateModule.cs: added NET_2_0 parts into TARGET_J2EE
  50. 2006-07-20 Gonzalo Paniagua Javier <[email protected]>
  51. * RemoteStateServer.cs: make it inmortal.
  52. 2006-07-20 Gonzalo Paniagua Javier <[email protected]>
  53. * RemoteStateServer.cs: use a Cache instead of a Hashtable so that we
  54. get sliding expiration for free.
  55. * StateServerItem.cs: expose 'timeout' through a property.
  56. 2006-06-15 Gonzalo Paniagua Javier <[email protected]>
  57. * SessionId.cs: make the length of the SessionID 24, as MS.
  58. 2006-04-19 Sebastien Pouliot <[email protected]>
  59. * SessionConfig.cs: Avoid a cast.
  60. * SessionDictionary.cs: Remove unused internal methods.
  61. * SessionId.cs: Const-ify internal/private values.
  62. * SessionStateModule.cs: Const-ify internal/private values.
  63. 2006-03-15 Gonzalo Paniagua Javier <[email protected]>
  64. * SessionSQLServerHandler.cs: if the connection to the DB is lost, retry
  65. the select/update/insert/delete commands after reconnecting.
  66. Fixes bug #77785.
  67. 2006-03-04 Robert Jordan <[email protected]>
  68. * SessionSQLServerHandler.cs: make SQL statements and parameters
  69. provider independent/configurable.
  70. * SessionSQLServerHandler.cs (SelectSession): properly dispose
  71. the data reader. Fixes bug #77698.
  72. 2006-02-28 Chris Toshok <[email protected]>
  73. * IStateRuntime.cs: wrap new interface method with NET_2_0.
  74. 2006-02-28 Chris Toshok <[email protected]>
  75. * SessionStateActions.cs: oops, actually rename the enum, not just
  76. the file.
  77. 2006-02-28 Chris Toshok <[email protected]>
  78. * SessionStateActions.cs: rename SessionStateActionFlags to this.
  79. * ISessionIDManager.cs: rename ISessionIDModule to this.
  80. * IStateRuntime.cs: corcompare work.
  81. 2006-02-01 Chris Toshok <[email protected]>
  82. * SessionStateServerHandler.cs: CONFIGURATION_2_0 => NET_2_0.
  83. * SessionSQLServerHandler.cs: same.
  84. * SessionStateModule.cs: same.
  85. * ISessionHandler.cs: same.
  86. * SessionInProcHandler.cs: same.
  87. 2006-01-18 Konstantin Triger <[email protected]>
  88. * HttpSessionState.jvm.cs: correcting serialization conditions.
  89. 2006-01-09 Konstantin Triger <[email protected]>
  90. * HttpSessionState.jvm.cs: merging HttpSessionState.cs@@/main/19-24
  91. 2005-11-28 Chris Toshok <[email protected]>
  92. * SessionStateModule.cs: CONFIGURATION_2_0 work.
  93. * SessionSQLServerHandler.cs: CONFIGURATION_2_0 work.
  94. * SessionInProcHandler.cs: CONFIGURATION_2_0 work.
  95. * SessionStateServerHandler.cs: CONFIGURATION_2_0 work.
  96. * ISessionHandler.cs (Init): @config is a SessionStateSection if
  97. CONFIGURATION_2_0.
  98. 2005-09-22 Gonzalo Paniagua Javier <[email protected]>
  99. * SessionStateModule.cs: use the new funciton in HttpRequest.
  100. 2005-09-22 Jackson Harper <[email protected]>
  101. * SessionStateModule.cs: Use a concat instead of a format (mucho
  102. faster).
  103. 2005-09-21 Gonzalo Paniagua Javier <[email protected]>
  104. * SessionStateModule.cs: fix compilation warnings and use the
  105. application path for the cookie path. This is a temporary fix for 76172.
  106. * SessionId.cs: don't access the cookie collection twice.
  107. 2005-09-09 Sebastien Pouliot <[email protected]>
  108. * HttpSessionState.cs: Added LinkDemand for Minimal.
  109. * IHttpSessionState.cs: Renamed IsCookieLess to IsCookieless.
  110. * ISessionStateItemCollection.cs: Added ICollection and IEnumerable.
  111. * SessionStateMode.cs: Added Custom (2.0).
  112. * SessionStateModule.cs: Use RandomNumberGenerator.Create to create
  113. the RNG. Assert EnvironmentPermission to read MONO_XSP_STATIC_SESSION.
  114. Added LinkDemand for Minimal.
  115. * StateRuntime.cs: Added LinkDemand for Minimal, new ProcessRequest
  116. override (2.0) and security attributes on methods.
  117. 2005-09-08 Gonzalo Paniagua Javier <[email protected]>
  118. * SessionStateModule.cs: raise the Start event for new sessions.
  119. 2005-09-08 Eyal Alaluf <[email protected]>
  120. * HttpSessionState.jvm.cs - fixed serialization when we want to serialize
  121. an empty session.
  122. 2005-09-06 Gonzalo Paniagua Javier <[email protected]>
  123. * SessionStateModule.cs: Only invoke the End event using the new method
  124. in HttpApplicationFactory and when session state mode is InProc.
  125. 2005-09-01 Eyal Alaluf <[email protected]>
  126. * SessionStateModule.cs: Under TARGET_J2EE we let the J2EE app server handle
  127. session persistence, so we don't support SQL/Remoting session servers
  128. at the ASP.Net level.
  129. 2005-08-30 Gonzalo Paniagua Javier <[email protected]>
  130. * SessionStateModule.cs: added lock around 'config'.
  131. * SessionInProcHandler.cs: when inserting in the the session in the
  132. Cache, use sliding expiration only.
  133. 2005-08-15 Miguel de Icaza <[email protected]>
  134. * SessionStateModule.cs: Make this use the synch api as the module
  135. was synchronous anyways
  136. 2005-06-25 Gonzalo Paniagua Javier <[email protected]>
  137. * SessionInProcHandler.cs: use cache.InsertPrivate.
  138. * SessionDictionary.cs: fix typo that made Clone useless.
  139. 2005-06-08 Ilya Kharmatsky <ilyak-at-mainsoft.com>
  140. * SessionStateMode.cs: Added TARGET_J2EE directive in order
  141. to provide in J2EE configuration additional mode - J2EE
  142. * SessionStateModule.cs: Added TARGET_JVM directives in order
  143. to resolve unsupported in Ghrasshopper "static variables" issue
  144. (When static variable are stored in general place, instead of
  145. storing such variables per AppDomain).
  146. 2005-05-27 Gonzalo Paniagua Javier <[email protected]>
  147. * RemoteStateServer.cs:
  148. * HttpSessionState.cs:
  149. * SessionSQLServerHandler.cs:
  150. * SessionInProcHandler.cs:
  151. * SessionStateServerHandler.cs: remove abandoned sessions in the
  152. ReleseRequest state. Fixes bug #75051.
  153. 2005-04-20 Gonzalo Paniagua Javier <[email protected]>
  154. * SessionSQLServerHandler.cs:
  155. * SessionStateServerHandler.cs: removed warnigs.
  156. 2005-03-02 Gonzalo Paniagua Javier <[email protected]>
  157. * SessionStateModule.cs:
  158. * SessionId.cs: share the same RNG for all the instances of
  159. SessionStateModule.
  160. 2005-02-05 Gonzalo Paniagua Javier <[email protected]>
  161. * SessionStateModule.cs: hack that makes static files work on sites that
  162. use the Session object in global.asax. You need to set
  163. MONO_XSP_STATIC_SESSION to enable it and by dong so you will lose a bit
  164. of performance when serving static files. Fixes bug #71133.
  165. 2004-11-30 Gonzalo Paniagua Javier <[email protected]>
  166. * SessionStateModule.cs: set the path modifier when using cookie-less
  167. sessions.
  168. 2004-10-06 Gonzalo Paniagua Javier <[email protected]>
  169. * SessionStateModule.cs: use SetCurrentExePath instead of SetFilePath.
  170. 2004-09-09 Gonzalo Paniagua Javier <[email protected]>
  171. * HttpSessionState.cs: don't share static session objects declared in
  172. the application file across the application, but on a per-session
  173. basis. Fixes bug #65446.
  174. 2004-08-31 Sanjay Gupta <[email protected]>
  175. * SessionStateItemExpireCallback.cs: Explicit modifier "sealed" not
  176. required in definition.
  177. 2004-08-09 Sanjay Gupta <[email protected]>
  178. * SessionStateItemExpireCallback.cs: Added delegate.
  179. * SessionStateStoreData.cs: Added a new class.
  180. 2004-08-05 Sanjay Gupta <[email protected]>
  181. * IHttpSessionState.cs:
  182. * ISessionIDModule.cs:
  183. * ISessionStateItemCollection.cs: Added new interfaces.
  184. 2004-08-04 Sanjay Gupta <[email protected]>
  185. * SessionStateActionFlags.cs: Added enumeration.
  186. 2004-07-07 Juraj Skripsky <[email protected]>
  187. * SessionStateModule.cs: set path in session cookie to application
  188. path.
  189. 2004-06-18 Gert Driesen <[email protected]>
  190. * IStateRuntime.cs: added missing marshalling attributes
  191. 2004-06-11 Gonzalo Paniagua Javier <[email protected]>
  192. * SessionSQLServerHandler.cs:
  193. * SessionStateServerHandler.cs:
  194. * ISessionHandler.cs: added new parameter to Init.
  195. * SessionInProcHandler.cs: use the HttpRuntime cache to store the
  196. sessions and handle expiration.
  197. * SessionStateModule.cs: added OnSessionRemoved internal method that is
  198. called whenever a session expires or is removed.
  199. 2004-05-05 Gonzalo Paniagua Javier <[email protected]>
  200. * HttpSessionState.cs: added Clone (), which makes and exact copy but
  201. with a cloned SessionDictionary. When EnableSessionState is set to
  202. ReadOnly, we can modify the collection, but changes are not propagated.
  203. * ISessionHandler.cs: changed signature of UpdateContext().
  204. * SessionDictionary.cs: added Clone.
  205. * SessionInProcHandler.cs:
  206. * SessionSQLServerHandler.cs:
  207. * SessionStateServerHandler.cs: don't create a new session if the
  208. handler do not require it. UpdateContext() now returns an
  209. HttpSessionState to the module.
  210. * SessionStateModule.cs: removed IsReadOnly as it is now passed as a
  211. parameter to the session handler. If the session is read-only, clone
  212. it so that it can be changed but changes are not kept.
  213. In short, we don't create session objects when not required and we
  214. honor the ReadOnly sessions.
  215. 2004-02-09 Gonzalo Paniagua Javier <[email protected]>
  216. * SessionInProcHandler.cs:
  217. * SessionSQLServerHandler.cs:
  218. * SessionStateServerHandler.cs: when creating the
  219. HttpSessionStateObjets, use the session objects that we know about
  220. in HttpApplicationFactory.
  221. 2004-01-23 Gonzalo Paniagua Javier <[email protected]>
  222. * HttpSessionState.cs:
  223. * SessionInProcHandler.cs: IsNewSession doesn't have a public setter.
  224. * SessionStateModule.cs: doesn't implement IRequiresSessionState.
  225. * StateServerItem.cs: not public.
  226. 2004-01-05 Alon Gazit <[email protected]>
  227. * SessionDictionary.cs: can't set item's value to null if the item is
  228. new.
  229. 2003-12-25 Jackson Harper <[email protected]>
  230. * SessionStateModule.cs: Handle SessionStateMode.Off properly in
  231. Init. Only set session cookies if a new session is created. This
  232. fixes bug #52501.
  233. 2003-12-18 Gonzalo Paniagua Javier <[email protected]>
  234. * IStateRuntime.cs:
  235. * SessionStateModule.cs: class status based fixes.
  236. 2003-12-05 Jackson Harper <[email protected]>
  237. * SessionStateModule.cs: Add readonly property for readonly
  238. sessions. This fixes bug #51647.
  239. * SessionInProcHandler.cs:
  240. * SessionSQLServerHandler.cs:
  241. * SessionStateServerHandler.cs: Cleanup params for
  242. HttpSessionState ctor. Make sure to always set is new, cookieless,
  243. and readonly properly.
  244. 2003-12-03 Jackson Harper <[email protected]>
  245. * SessionStateModule.cs: If using cookieless sessions add an
  246. onbegin request handler that parsers out session ids and rewrites
  247. the path. Also redirect to a url with an embedded session id if we
  248. are creating a new cookieless session.
  249. * SesionInProcHandler.cs:
  250. * SessionSQLServerHandler.cs:
  251. * SessionStateServerHandler.cs: Use SessionId::Lookup to lookup session
  252. ids, don't set the session id cookie anymore. That is handled by
  253. the SessionStateModule.
  254. * SessionId.cs: Add method for looking up session ids, add some constants.
  255. 2003-11-26 Jackson Harper <[email protected]>
  256. * SessionSQLServerHandler.cs: Fix typo in param name.
  257. 2003-11-25 Jackson Harper <[email protected]>
  258. * RemoteStateServer.cs: Update the session dictionary data and the
  259. static objects data.
  260. * SessionDictionary.cs: Remove type serialization methods, these
  261. have been moved to a utility class. Add convenience methods for
  262. converting to/from byte arrays.
  263. * SessionSQLServerHandler.cs:
  264. * SessionStateServerHandler.cs: Save/Restore static objects. Use new
  265. to/from byte array methods.
  266. * StateServerItem.cs: Hold static objects data.
  267. 2003-11-24 Jackson Harper <[email protected]>
  268. * SessionStateServerHandler.cs: Parse connection string. Need to
  269. look into what MS allows/doesn't allow better.
  270. 2003-11-24 Jackson Harper <[email protected]>
  271. * RemoteStateServer.cs: The state server object that will reside
  272. on the server and store session data and ids.
  273. * StateServerItem.cs: Container for session data.
  274. * SessionStateServerHandler.cs: Handler that communicates with the
  275. StateServer so sessions can be stored out of process.
  276. * SessionStateModule.cs: Allow state server mode.
  277. 2003-11-13 Jackson Harper <[email protected]>
  278. * SessionInProcHandler.cs: Use AppDomain.SetData so data is
  279. available across all threads. Set the path of session id
  280. cookies. Patch by Mohammad DAMT. Fixes bug #50922.
  281. 2003-11-06 Jackson Harper <[email protected]>
  282. * ISessionHandler.cs: Pass the SessionStateModule to handlers when
  283. updating.
  284. * SessionSqlServerHandler.cs:
  285. * SessionInProcHandler.cs: Accept SessionStateModule when
  286. updating. Use new SessionId.Create method for creating session
  287. ids.
  288. * SessionStateModule.cs: Add a random number generator that will
  289. be used for creating session ids. Pass this to handlers when
  290. updating.
  291. * SessionId.cs: New class for creating session ids.
  292. 2003-11-03 Jackson Harper <[email protected]>
  293. * HttpSessionState.cs (CopyTo): Copy values not keys. Patch by Yaron Shkop.
  294. 2003-11-03 Jackson Harper <[email protected]>
  295. * HttpSessionState.cs: Make the SessionDictionary accessable
  296. * ISessionHandler.cs: Add method to update the session state
  297. data in the handler. Pass the session config to handlers when
  298. initializing.
  299. * SessionConfig.cs: Add StateNetworkTimeout
  300. * SessionInProcHandler.cs: Updates because interface has
  301. changed, all functionality is the same.
  302. * SessionStateModule.cs: Get new config items, allow SQLServer
  303. session manager type. Update session handlers when the session
  304. state has been released.
  305. * SessionStateSectionHandler.cs: Add StateNetworkTimeout
  306. * SessionSQLServerHandler.cs: New class allows sessions to be
  307. stored in a database.
  308. 2003-10-28 Jackson Harper <[email protected]>
  309. * HttpSessionState.cs: Do not allow timeout to be set to less then
  310. one.
  311. 2003-10-28 Jackson Harper <[email protected]>
  312. * SessionInProcHandler.cs: Compute timeouts
  313. correctly. DateTime.Milliseconds is the just the milliseconds part
  314. of the time, it is not the entire time as milliseconds.
  315. 2003-10-13 Ben Maurer <[email protected]>
  316. * SessionStateModule.cs: prevent Context.State from being null if
  317. the module is inited in another HttpApplication. Fixes #49569.
  318. 2003-07-30 Andreas Nahr <[email protected]>
  319. * IStateRuntime.cs: New interface class
  320. * StateRuntime.cs: New class - stubbed out
  321. 2003-07-17 Andreas Nahr <[email protected]>
  322. * SessionInProcHandler.cs: Made these internal to fix signature and building CLS-compliant
  323. 2003-07-08 Gonzalo Paniagua Javier <[email protected]>
  324. * SessionDictionary.cs: locking.
  325. * SessionInProcHandler.cs: use the new method instead of the setter.
  326. 2003-07-01 Gonzalo Paniagua Javier <[email protected]>
  327. * ISessionHandler.cs:
  328. * SessionInProcHandler.cs:
  329. * SessionStateModule.cs: UpdateContext returns a bool indicating if we
  330. started a new session. Only call session start event if that is true.
  331. 2003-05-13 Gonzalo Paniagua Javier <[email protected]>
  332. * SessionStateModule.cs: fire application start and session start/end
  333. events.
  334. 2003-03-31 Stefan Görling <[email protected]>
  335. * HttpSessionState.cs:
  336. * ISessionHandler.cs:
  337. * SessionInProcHandler.cs:
  338. * SessionStateModule.cs: initial implementation of InProc session.
  339. 2003-03-13 Gonzalo Paniagua Javier <[email protected]>
  340. * HttpSessionState.cs: implemented CodePage.
  341. * SessionStateModule.cs: initial stuff to make it work.
  342. 2003-03-04 Gonzalo Paniagua Javier <[email protected]>
  343. * HttpSessionState.cs: reworked to use SessionDictionary.
  344. * SessionDictionary.cs: implemented serialization/deserialization.
  345. 2003-03-03 Gonzalo Paniagua Javier <[email protected]>
  346. * SessionConfig.cs:
  347. * SessionStateSectionHandler.cs: new files to read <sessionState>
  348. configuration.
  349. 2002-10-08 Gonzalo Paniagua Javier <[email protected]>
  350. * SessionStateModule.cs: don't throw exception. Just for testing the
  351. configuration stuff until we implement this.
  352. 2002-08-18 Gonzalo Paniagua Javier <[email protected]>
  353. * HttpSessionState.cs: IsAbandoned is internal.
  354. * SessionDictionary.cs: scope fixes.
  355. * SessionStateModule.cs: added events.
  356. 2002-06-30 Gonzalo Paniagua Javier <[email protected]>
  357. * System.Web.SessionState/HttpSessionState.cs:
  358. Fixes based on class status page:
  359. - Add attributes (DefaultEvent, ParseChildren).
  360. - Fix declarations.
  361. - Explicitly implement some interfaces (IPostBackDataHandler
  362. and IPostBackEventHandler).
  363. - Implemented some missing methods.
  364. 2002-06-23 Gonzalo Paniagua Javier <[email protected]>
  365. * HttpSessionState.cs: implemented more methods/properties.
  366. * SessionDictionary.cs: New file.
  367. 2002-06-04 Gonzalo Paniagua Javier <[email protected]>
  368. * System.Web.SessionState/HttpSessionState.cs:
  369. * System.Web.SessionState/SessionStateModule.cs: new files with some
  370. implementation and the rest stubbed.
  371. 2002-06-03 Gonzalo Paniagua Javier <[email protected]>
  372. * IReadOnlySessionState.cs:
  373. * IRequiresSessionState.cs:
  374. * SessionStateMode.cs: new files.