app/controllers/clientsportal_controller.rb
#
# Logging out client and redirecting to login page.
#
Logging out client and redirecting to login page.
Logging out client and redirecting to login page .
def logout
        session[:client_id] = nil
        flash[:notice] = "Client logged out"
        redirect_to(:action => "login")
    end
def logout session [ :client_id ] = nil flash [ :notice ] = "Client logged out" redirect_to ( :action => "login" ) end
Logging out client and redirecting to login page.
Logging out client and redirecting to login page .