Change this line
packet = clip(packet) & p_web.Script('startCountDown('& int(p_web.site.SessionExpiryAfterHS/100) &',"'& clip(p_web.site.LoginPage) &'","countdown");')
For this
p_web.Script('startCountDown('& int(p_web.site.SessionExpiryAfterHS/100) &',"'& CLIP(p_web.site.LoginPage) &'","countdown");')
Or delete the bold text.
Cheers
Ura