Close Session automatically

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Mar 6, 2018
Company: Bodega LLC

Hello! I would like to learn, is it possible to close session after a while if user don't do anything?

 
#2
People who like this:0Yes/0No
Administrator
Rating: 24
Joined: Oct 3, 2019
Company:

Hello Eyup,

yes, it is possible.

In the Designer, open the menu Administration -> Infobase Parameters.

We need the "Passive session termination timeout" parameter (screenshot 1). The default value is one day.

You can set a shorter interval after which the suspended session will be closed.

To check, you can set the following values (screenshot 2). Run the program and in the 1C server console we see the following (screenshot 3).

If now we close the 1C application using the task manager (in this way we simulate the program hanging), then after 10 seconds the session will also be closed (screenshots 4 and 5).

 
#3
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Mar 6, 2018
Company: Bodega LLC

I appreciate that sir, thank you!

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.