NAS and Timer

Dear DigiTecKid

I have create a codeunit as you said and add my code under MESSAGE(‘The current time is: %1’,TIME);.

My Code is :

IF IdleSession.FINDSET THEN
REPEAT
IF (NOT IdleSession.“My Session”) AND (IdleSession.“Idle Time” >3) THEN
IdleSession.DELETE;
UNTIL IdleSession.NEXT =0;

But Problem is That it kill my Session which I don’t want.

How to achieve this ?? Kindly reply.