Reference > Shop flow URLs > Member subsystem URLs > Security
Logoff URL
Log off a registered user.
URL structure
- http:// host_name/path/
- The fully qualified name of the WebSphere Commerce Server and the configuration path
name-value pair with the & character. For a detailed description of the parameters and their values, see the list entitled Parameter values." />
Parameter values
- storeId
- The reference number of the store from which the customer is logging off.
- URL
- The URL to be called when the command completes successfully.
- rememberMe
- Determines whether the customer should be remembered.
Example
This example logs a registered user off the system.
http://myhostname/webapp/wcs/stores/servlet/Logoff?storeId=1
Behavior
- Clears the session information for the user.
- Forwards to the URL specified in the URL parameter or to the LogoffView view if the URL parameter is not supplied.
- When you log off using this command, you log off on a per-store basis, and not a per-site basis.
Exception conditions
None.
Example
This example logs a registered user off the system, but their session will be persisted
http://myhostname/webapp/wcs/stores/servlet/Logoff?storeId=1&rememberMe=true
Behavior
- The registered user will be logged off, but is still remembered by the store.
- The session will persist, and the registered user will be able to view their shopping cart (but no other information such as order history or addresses). To view this sensitive information, the customer will need to once again log on to the store.
- By default, the Logoff command deletes the persistent session. That is, by default, rememberMe=false when logging off.
For additional information, see Persistent sessions.
Exception conditions
None.
Related concepts
Persistent sessions (Remember Me)
Related reference
RestoreOriginalUserSetInSession URL