Forum Discussion
Ismaeel_Butt_30
Nimbostratus
Feb 19, 2018Time 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,
- Stanislas_Piro2
Cumulonimbus
You can use this expression to the session.max_session_timeout variable
expr { [clock scan "2018-03-10T17:00"] - [mcget {session.user.starttime}] }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects