Hi flexyjerkov,
Your script is absolutely awesome, and it deserves recognition. In my testing I was frustrated by the session not properly clearing when the workstations were powered off, and read through your code several times before finding this typo:
In the section "Check Whether Workstation Has Old Login Session and clear", the line:
If objFSO.FileExists( Oldsession & ".txt" ) Then
should be
If objFSO.FileExists( Servershare & Oldsession & ".txt" ) Then
Just though I should point that out for anyone else having the same issues. Other than that, this is great work!