3.2 WAM Session Clean Up
Following are some considerations if you are using WAM Session Management:
- All WAM sessions are created and managed in a database with any session state that is maintained by the session. For more information refer to WAM Session Management in the WAM Guide.
- The session timeout determines if a session in the database is invalid or active. All invalid sessions are subject to session clean up performed by the Clean Up Program. The default setting is to clean up invalid sessions every 60 minutes. You can change this default via the Web Administrator by setting Cleanup (minutes) time on the WAM Components page of the Web Administrator.
- It is also possible to disable this periodic clean up and instead perform clean up at scheduled times. This may be desirable, because high volume WAM Applications may create a lot of sessions at peak times. In these cases, it may be preferable to perform the clean up at off-peak times, at midnight for example, to avoid adding load to the database that may occur during clean up. To do this you should disable the automatic periodic clean up by setting to 0 (zero) the Cleanup(minutes) in the WAM Components page of the Web Administrator. You can then schedule the Clean Up Program to run with the argument "*WAMONLY", which will perform immediate session clean up and terminate.
On Windows, the Clean Up Program command line is:
w3_p2200 *WAMONLY
and on IBM i, the command is:
CALL PGM(W3@P2200) PARM('*WAMONLY')
- If you want to clean up all WAM session data (both expired and non-expired session data) run the Clean Up Program with the argument "*WAMCLEAR".
On Windows, the Clean Up Program command line is:
w3_p2200 *WAMCLEAR
and on IBM i, the command is:
CALL PGM(W3@P2200) PARM('*WAMCLEAR')
- You can use arguments *WAMONLY and *WAMCLEAR in the same Clean Up:
On Windows, the Clean Up Program command line is:
w3_p2200 *WAMONLY *WAMCLEAR
and on IBM i, the command is:
CALL PGM(W3@P2200) PARM('*WAMONLY' '*WAMCLEAR')
Also see
3.4 IBM i Clean Up
3.5 Windows Web Jobs and Clean Up