Forum Discussion

Ismaeel_Butt_30's avatar
Ismaeel_Butt_30
Icon for Nimbostratus rankNimbostratus
Feb 19, 2018

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,

 

1 Reply

  • You can use this expression to the session.max_session_timeout variable

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