You can bind a login or logoff script to the vShield Edge gateway.