SessionPageStatePersister is not releasing the old viewstate from sess

I have used the option of the better methods from this document http://msdn.microsoft.com/en-us/library/system.web.ui.sessionpagestatepersister.aspx

PageStatePersister _pers;
protected override PageStatePersister PageStatePersister
{
get
{
if (_pers == null)
_pers = new SessionPageStatePersister(this);
return _pers;
}
}

Everything works great, the viewstate is no longer on the page and is moved to session. But how does this get released from the session. I don't see it released and my servers cpu memory is growing indefinetely.

Thanks,

Tilak
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories