Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Time based restriction and termination of SSL VPN

Hello,

Can i add date and month as well in below variable assign for deleting the ssl vpn session? Below i have found on internet, it works fine with time but how i can add date and month?

set endhour 22; set endmin 18; set starthour [clock format [mcget {session.user.starttime}] -format %H]; set startmin [clock format [mcget {session.user.starttime}] -format %M]; return [expr {( $endhour * 3600 ) + ( $endmin * 60 ) - ( $starthour * 3600 ) - ( $startmin * 60 )}]

Thanks,

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

You can use this expression to the session.max_session_timeout variable

expr { [clock scan "2018-03-10T17:00"] - [mcget {session.user.starttime}] }
0