Disable Timeout Idle Connection in a Policy

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

Disable Timeout Idle Connection in a Policy

Postby Niwre » Oct 12 13 11:10 pm

Hi Adrien,
I would like to disable the timeout in a policy for some incoming proxy connections.
Is this possible and how can I implement it?
Thanks you for your help!
Regards
Niwre
Niwre
 
Posts: 39
Joined: Jun 14 11 2:14 am

Re: Disable Timeout Idle Connection in a Policy

Postby adrien » Oct 12 13 11:19 pm

HI

yes you can set this.

Session.TimeoutEnabled = false

in a script or expression evaluator policy item.

Regards

Adrien de Croy
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Re: Disable Timeout Idle Connection in a Policy

Postby Niwre » Oct 13 13 1:29 am

Hi Adrien,

I just tried it with Javascript and tested it after the Javascript with a Expression evaluator policy item.
It does not work, the return value in Expression evaluator after Javascript is no.

Javascript:
function filter(User, Binding, Session, Request, Website, Event)
{
Session.TimeoutEnabled==false
return true;
}

Expression evaluator:
Session.TimeoutEnabled=false

Regards
Erwin
Niwre
 
Posts: 39
Joined: Jun 14 11 2:14 am

Re: Disable Timeout Idle Connection in a Policy

Postby adrien » Oct 14 13 12:12 pm

Hi

in the expression evaluator, just uncheck the option to resolve to true/false value.

In the JScript, you can't use ==, that is a check for equality, rather than an assignment. You want to just use single =

Regards

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Re: Disable Timeout Idle Connection in a Policy

Postby Niwre » Oct 15 13 3:51 am

Hi Adrien,

Sorry, I should have read the help file in detail!

Thanks for the help!

Regards
Erwin
Niwre
 
Posts: 39
Joined: Jun 14 11 2:14 am


Return to WinGate

Who is online

Users browsing this forum: No registered users and 8 guests

cron