﻿USE [AIADatabaseV5]
GO
/****** Object:  StoredProcedure [dbo].[DeleteUserSession]    Script Date: 2/1/2018 12:15:55 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

-- =============================================  
-- Author:  <Nikita Kulshreshtha>  
-- Create date: <10/11/2017>  
-- Description: <delete logged in user FROM SessionManager >  
-- =============================================  

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[DeleteUserSession]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[DeleteUserSession]
GO
CREATE PROCEDURE [dbo].[DeleteUserSession]  

 @sSessionId varchar
 
AS  
BEGIN  

 SET NOCOUNT OFF;  
 DELETE FROM SessionManager Where sessionId = @sSessionId;
END 



GO
