This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Active sessions
#11
(02.11.2017, 19:20)Erwin van der Zwart Wrote: Hi,

Only thing you can do is compare created time stamp with os.time(), i also wouldn't use io.writefile in these kind of scripts as a lot of writing to SD card is not adviced....

BR,

Erwin

Only thing you can do is compare created time stamp with os.time()
Unfortunately I can't. Created looks like the time of the first contact. Not the latest request taken from the client. In my network I've computers logged on with active session for months.

i also wouldn't use io.writefile in these kind of scripts as a lot of writing to SD card is not adviced....
Thsi script runs only once as a part of the init script. It just creates sessions.lp file.
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259
Reply


Messages In This Thread
Active sessions - by Thomas - 19.10.2017, 16:34
RE: Active sessions - by Erwin van der Zwart - 19.10.2017, 18:37
RE: Active sessions - by Thomas - 24.10.2017, 16:06
RE: Active sessions - by Erwin van der Zwart - 24.10.2017, 17:07
RE: Active sessions - by Thomas - 24.10.2017, 17:42
RE: Active sessions - by Erwin van der Zwart - 24.10.2017, 20:50
RE: Active sessions - by Thomas - 02.11.2017, 14:12
RE: Active sessions - by admin - 02.11.2017, 14:29
RE: Active sessions - by Thomas - 02.11.2017, 14:55
RE: Active sessions - by Erwin van der Zwart - 02.11.2017, 19:20
RE: Active sessions - by Thomas - 07.11.2017, 14:56
RE: Active sessions - by admin - 08.11.2017, 12:26
RE: Active sessions - by Thomas - 08.11.2017, 17:59
RE: Active sessions - by admin - 09.11.2017, 11:49
RE: Active sessions - by Thomas - 09.11.2017, 15:08

Forum Jump: