Online
Manual / Configuration
Files / Resume later
Command:
saveSession
Usage:
Allow users to click on a button to resume editing the
form later. This is useful if you plan on creating a long form with
multiple pages.
Arguments:
- value="<0|1>"
Set this to 0 (disabled) or 1 (enabled) if you would like to enable
or disable the resume later feature.
- fields="<field name1, field name2, ...>"
Specify the fields that you want the script to remember.
- lifetime="<seconds>"
Specify the lifetime of the cookie in seconds. If you specify 0, then the fields will be remembered until the user's browser is closed. The default value is 2678400 which is 1 month or 31 days.
- path="<directory>"
Specify the directory on your web server where you want all of the session information to be saved. The default value is /tmp. This directory must be writeable.
Example:
# This is the absolute
path to the web page that displays after the user clicks on the
Resume Later button.
templateSavedSession value="/path/to/saved/session.html"
saveSession value="1" |
This is what we've placed in the configuration file. The templateSavedSession
command must be placed before the saveSession command.
<input type="submit" name="_saveData"
value="Resume Later"> |
This is the button that will allow the user to save their form data
and come back later to finish it later. It is recommended you add this
to each form page.
<input type="submit" name="_eraseData"
value="Start All Over"> |
This is the button that will allow the user to tell the script to erase
all of the form fields that were saved and basically start all over
again. It is recommended to place this on the first form page.
|