Sun Microsystems Logo
Products and Services
 
Support and Training
 
 

A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  
 
User Commandsclear-session-store(1)


NAME

 clear-session-store - clears all the sessions from the persistent store

SYNOPSIS

 clear-session-store [ --storeurl persistent_store_URL ] [ --storeuser username ][ --storepassword user_password ] [ --optionsfile filename ]

DESCRIPTION

 

Removes all the sessions, including passivated sessions, from the persistent store based on:

storeurl
The JDBC URL that is pointing to the persistent store being used for saving the session data.
storeuser
The username associated with the persistent store being used for saving session data.
storepassword
The password corresponding to the user of the persistent store being used for saving session data.

Use this command with caution.

All the options should be specified either on the command-line itself, or in an options file. If a password is not specified on the command-line, you will be prompted to provide it, if you are in the interactive mode.

This command can only be run locally.

The clear-session-store command is available only in the Enterprise Edition of the Sun Java System Application Server.


OPTIONS

 
--storeurl
JDBC URL of the persistent store.
--storeuser
username associated for the persistent store.
--storepassword
password corresponding to the storeuser.
--optionsfile
a valid filename that has the options in it.

EXAMPLES

 Example 1. Using clear-session-store to clear all sessions
 
 
asadmin> clear-session-store --storeurl 
jdbc:sun:hadb@myhost1:7676,myhost2:6767 --storeuser haadmin 
--storepassword hapasswd

EXIT STATUS

 
0
command executed successfully
1
error in executing the command

SEE ALSO

 

configure-session-persistence(1), create-session-store(1)



EnterpriseGo To TopLast Changed April 2004