Class TSessionPageStatePersister
TSessionPageStatePersister class
TSessionPageStatePersister implements a page state persistent method based on sessions. Page state are stored in user sessions and therefore, this persister requires session to be started and available.
TSessionPageStatePersister keeps limited number of history states in session, mainly to preserve the precious server storage. The number is specified by setHistorySize HistorySize, which defaults to 10.
There are a couple of ways to use TSessionPageStatePersister. One can
override the page's TPage::getStatePersister()
method and create a
TSessionPageStatePersister instance there. Or one can configure the pages to use
TSessionPageStatePersister in page configurations as follows,
<pages StatePersisterClass="System.Web.UI.TSessionPageStatePersister" />
The above configuration will affect the pages under the directory containing this configuration and all its subdirectories. To configure individual pages to use TSessionPageStatePersister, use
<pages> <page id="PageID" StatePersisterClass="System.Web.UI.TSessionPageStatePersister" /> </pages>
- TComponent
-
TSessionPageStatePersister implements IPageStatePersister
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.1
Located at Web/UI/TSessionPageStatePersister.php
public
|
|
public
|
|
public
integer
|
|
public
|
|
public
|
|
public
mixed
|
string |
STATE_SESSION_KEY |
'PRADO_SESSION_PAGESTATE' |
|
string |
QUEUE_SESSION_KEY |
'PRADO_SESSION_STATEQUEUE' |
GLOBAL_RAISE_EVENT_LISTENER
|