NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

root/Chameleon/trunk/Chameleon/KeepSessionAlive/KeepSessionAlive.en-ca.doc.xml

Revision 13 (checked in by jcleary, 17 years ago)

Latest Chameleon code checkout from previous repository

Line 
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ca:widgetdoc xmlns:ca="http://localhost/chameleon/utils/xml/schemas" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://localhost/chameleon/utils/xml/schemas ..\..\..\utils/xml/schemas/chameleon.xsd">
3   <ca:docinfo>
4     <ca:language>
5       <ca:value>en-ca</ca:value>
6     </ca:language>
7     <ca:docbuilddate>
8       <ca:value>1999-12-31</ca:value>
9     </ca:docbuilddate>
10     <ca:docversion>
11       <ca:value>0.1</ca:value>
12     </ca:docversion>
13     <ca:authors>
14       <ca:person>
15         <ca:name>Doc_Builder</ca:name>
16         <ca:company>DM Solutions Group Inc.</ca:company>
17         <ca:contact>chameleon@lists.maptools.org</ca:contact>
18       </ca:person>
19     </ca:authors>
20     <ca:editors>
21       <ca:person>
22         <ca:name>Christopher R. Thorne</ca:name>
23         <ca:company>DM Solutions Group Inc.</ca:company>
24         <ca:contact>chameleon@lists.maptools.org</ca:contact>
25       </ca:person>
26       <ca:person>
27         <ca:name>Paul Spencer</ca:name>
28         <ca:company>DM Solutions Group Inc.</ca:company>
29         <ca:contact>chameleon@lists.maptools.org</ca:contact>
30       </ca:person>
31     </ca:editors>
32   </ca:docinfo>
33   <ca:identification>
34     <ca:name>
35       <ca:value>KeepSessionAlive</ca:value>
36     </ca:name>
37     <ca:chameleonpack>
38       <ca:value>TBD</ca:value>
39     </ca:chameleonpack>
40     <ca:parentgroup>
41       <ca:value>Utility Widget</ca:value>
42     </ca:parentgroup>
43     <ca:version>
44       <ca:value>2.0</ca:value>
45     </ca:version>
46     <ca:releasedate>
47       <ca:value>2005-01-10</ca:value>
48     </ca:releasedate>
49     <ca:maturitylevel>
50       <ca:value>TECHRELEASE</ca:value>
51     </ca:maturitylevel>
52     <ca:developers>
53       <ca:person>
54         <ca:name>Paul Spencer</ca:name>
55         <ca:company>DM Solutions Group Inc.</ca:company>
56         <ca:contact>chameleon@lists.maptools.org</ca:contact>
57       </ca:person>
58     </ca:developers>
59   </ca:identification>
60   <ca:descriptions>
61     <ca:description>
62       <ca:paras>
63         <ca:para>Chameleon applications remember the current state of the application by saving some settings in a server-side session.  By default, server-side sessions are configured to expire after some pre-determined period of inactivity (typically, 30 minutes).  The KeepSessionAlive widget is used to ensure that a user's session never expires while the application is open in a browser window.  This "invisible" widget needs to be placed somewhere inside the body of the application page. It represents itself in the Web page as a transparent 1x1 pixel image that refreshes its contents on a regular (configurable) basis in order to keep the associated PHP session alive.</ca:para>
64       </ca:paras>
65     </ca:description>
66     <ca:dependancies>
67       <ca:dependancy type="None" title="">
68         <ca:para/>
69       </ca:dependancy>
70     </ca:dependancies>
71     <ca:sharedresources>
72       <ca:paras title="None Available.">
73         <ca:para/>
74       </ca:paras>
75     </ca:sharedresources>
76     <ca:embeddedhelp>
77       <ca:paras>
78         <ca:para/>
79       </ca:paras>
80     </ca:embeddedhelp>
81     <ca:guinotes title="Interface Functionality">
82       <ca:guinote type="General" title="To Keep it Going...">
83         <ca:para>Expiration of sessions is intended to reduce server stress by allowing cleanup of extraneous session files on a regular basis.  Some applications may be intended to be long-lived, particularly those built for an internal or closed audience.  In these cases, it is sometimes desirable to keep the application's session alive even though the user may not be using it constantly.</ca:para>
84         <ca:para>It is not recommended that the KeepSessionAlive widget be used on high-load servers with restricted temporary space or in applications that don't specifically require this functionality.</ca:para>
85       </ca:guinote>
86     </ca:guinotes>
87   </ca:descriptions>
88   <ca:tagstructures>
89     <ca:tagstructure title="Widget Syntax">
90       <ca:description/>
91       <ca:code>
92         <ca:codeblock bold="true">
93           <ca:line>&lt;CWC2 TYPE="KeepSessionAlive"</ca:line>
94         </ca:codeblock>
95         <ca:codeblock bold="false">
96           <ca:line>   ENABLED="[TRUE|FALSE]" </ca:line>
97           <ca:line>   FORMINDEX="[0 &lt; integer]"</ca:line>
98           <ca:line>   VISIBLE="[TRUE|FALSE]"</ca:line>
99           <ca:line/>
100           <ca:line>   &lt;!-- KeepSessionAlive Attributes --&gt;</ca:line>
101           <ca:line/>
102           <ca:line>   TIMEOUT="[0 &lt; integer &lt; 1800]"/&gt;</ca:line>
103         </ca:codeblock>
104       </ca:code>
105     </ca:tagstructure>
106   </ca:tagstructures>
107   <ca:examples>
108     <ca:widgetexamples>
109       <ca:example title="Example #1: Simple">
110         <ca:description>The following example tag keeps the session alive every 300 seconds or 5 minutes.</ca:description>
111         <ca:code>
112           <ca:codeblock bold="false">
113             <ca:line>&lt;cwc2 type="KeepSessionAlive" timeout="300"/&gt;</ca:line>
114           </ca:codeblock>
115         </ca:code>
116       </ca:example>
117     </ca:widgetexamples>
118     <ca:sampleapps>
119       <ca:sampleapp>
120         <ca:name>Hawaii Demo</ca:name>
121         <ca:appurl>www.mapsherpa.com/hawaii2/</ca:appurl>
122         <ca:description>The Hawaii Demo uses the latest 1.99 Chameleon version.</ca:description>
123       </ca:sampleapp>
124     </ca:sampleapps>
125     <ca:scriptexamples/>
126   </ca:examples>
127   <ca:attributegroups>
128     <ca:attributegroup>
129       <ca:name>Base</ca:name>
130     </ca:attributegroup>
131   </ca:attributegroups>
132   <ca:widgettag>
133     <ca:attribute>
134       <ca:name>TIMEOUT</ca:name>
135       <ca:type>
136         <ca:value>integer</ca:value>
137       </ca:type>
138       <ca:class>
139         <ca:value>Widget Only</ca:value>
140       </ca:class>
141       <ca:default>
142         <ca:value>1800</ca:value>
143         <ca:description/>
144       </ca:default>
145       <ca:possvalues type="range">
146         <ca:minimum>0</ca:minimum>
147         <ca:maximum>1800</ca:maximum>
148       </ca:possvalues>
149       <ca:description>Set the period (in seconds) after which the application automatically connects to the server to keep the session alive.</ca:description>
150     </ca:attribute>
151   </ca:widgettag>
152   <ca:formelements>
153     <ca:formelement>
154       <ca:name>sid</ca:name>
155       <ca:type>
156         <ca:value>unknown</ca:value>
157       </ca:type>
158       <ca:description/>
159     </ca:formelement>
160   </ca:formelements>
161   <ca:jsfunctions>
162     <ca:jsfunction>
163       <ca:name>KeepSessionAlive_</ca:name>
164       <ca:scope>
165         <ca:value>Private</ca:value>
166       </ca:scope>
167       <ca:description>The guts of this widget that refresh the hidden image to prevent the session timing out.</ca:description>
168     </ca:jsfunction>
169   </ca:jsfunctions>
170 </ca:widgetdoc>
Note: See TracBrowser for help on using the browser.