Since the Session.Timeout property holds an Int32, I'd say the
largest value would be 2,147,483,647.
--s
Then why does 900000 cause the exception below?
Specified argument was out of the range of valid values. Parameter
name:
slidingExpiration
Description: An unhandled exception occurred during the execution of
the
current web request. Please review the stack trace for more
information
about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Specified
argument was out of the range of valid values. Parameter name:
slidingExpiration
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentOutOfRangeException: Specified argument was out of the range
of
valid values.
Parameter name: slidingExpiration]
System.Web.Caching.CacheEntry..ctor(String key, Object value,
CacheDependency dependency, CacheItemRemovedCallback onRemovedHandler,
DateTime utcAbsoluteExpiration, TimeSpan slidingExpiration,
CacheItemPriority priority, Boolean isPublic) +649
System.Web.Caching.CacheInternal.DoInsert(Boolean isPublic, String
key,
Object value, CacheDependency dependencies, DateTime
utcAbsoluteExpiration,
TimeSpan slidingExpiration, CacheItemPriority priority,
CacheItemRemovedCallback onRemoveCallback, Boolean replace) +91
System.Web.Caching.CacheInternal.UtcInsert(String key, Object
value,
CacheDependency dependencies, DateTime utcAbsoluteExpiration, TimeSpan
slidingExpiration, CacheItemPriority priority,
CacheItemRemovedCallback
onRemoveCallback) +40
System.Web.SessionState.InProcStateClientManager.System.Web.SessionSta
te.IStateClientManager.Set(String
id, SessionStateItem item, Boolean inStorage)
System.Web.SessionState.SessionStateModule.OnReleaseState(Object
source,
EventArgs eventArgs)
System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutio
nStep.Execute()
+60
System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean&
completedSynchronously) +87
500000 does not.