// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-
+#if !NET_2_0
using System;
namespace System.Web.SessionState {
this.dict_data = dict_data;
this.sobjs_data = sobjs_data;
this.timeout = timeout;
- this.last_access = DateTime.Now;
+ this.last_access = DateTime.UtcNow;
}
public byte [] DictionaryData {
public void Touch ()
{
- last_access = DateTime.Now;
+ last_access = DateTime.UtcNow;
}
public bool IsAbandoned () {
- if (last_access.AddMinutes (timeout) < DateTime.Now)
+ if (last_access.AddMinutes (timeout) < DateTime.UtcNow)
return true;
return false;
}
}
}
}
-
+#endif