<%- contentFor('HeaderCss') %>
<!-- perticular page css -->
  
<%- contentFor('body') %>

                <div class="content">
                    <div class="container-fluid">

                        <div class="row">
                            <div class="col-sm-12">
                                <div class="page-title-box">
                                    <h4 class="page-title">Session Timeout</h4>
                                    <ol class="breadcrumb">
                                        <li class="breadcrumb-item"><a href="javascript:void(0);">Lexa</a></li>
                                        <li class="breadcrumb-item"><a href="javascript:void(0);">UI Elements</a></li>
                                        <li class="breadcrumb-item active">Session Timeout</li>
                                    </ol>
                                    
                                    <% include ../Partials/TinyCharts %>
                                </div>
                            </div>
                        </div>
                        <!-- end row -->

                        <div class="row">
                            <div class="col-12">
                                <div class="card m-b-20">
                                    <div class="card-body">
        
                                        <h5 class="mt-0 header-title">Bootstrap-session-timeout</h5>
                                        <p class="text-muted m-b-30">Session timeout and keep-alive control
                                            with a nice Bootstrap warning dialog.</p>
        
                                        <div class="text-muted">
                                            <p>After a set amount of idle time, a Bootstrap warning dialog is shown
                                                to the user with the option to either log out, or stay connected. If
                                                "Logout" button is selected, the page is redirected to a logout URL.
                                                If "Stay Connected" is selected the dialog closes and the session is
                                                kept alive. If no option is selected after another set amount of
                                                idle time, the page is automatically redirected to a set timeout
                                                URL.</p>
        
                                            <p>
                                                Idle time is defined as no mouse, keyboard or touch event activity registered by the browser.
                                            </p>
        
                                            <p>
                                                As long as the user is active, the (optional) keep-alive URL keeps
                                                getting pinged and the session stays alive. If you have no need to
                                                keep the server-side session alive via the keep-alive URL, you can
                                                also use this plugin as a simple lock mechanism that redirects to
                                                your lock-session or log-out URL after a set amount of idle time.
                                            </p>
                                        </div>
                                    </div>
                                </div>
                            </div> <!-- end col -->
                        </div> <!-- end row -->
            
                    </div> <!-- container-fluid -->

                </div> <!-- content -->

                <!-- Session timeout -->
                <%- contentFor('FooterJs') %>

                 <!-- Session timeout js -->
        <script src="public/plugins/bootstrap-session-timeout/bootstrap-session-timeout.min.js"></script>


        <script>
           $.sessionTimeout({
                     keepAliveUrl: 'pages-blank',
                     logoutButton:'Logout',
                     logoutUrl: 'pages-login',
                     redirUrl: 'pages-lock-screen',
                     warnAfter: 3000,
                     redirAfter: 30000,
                     countdownMessage: 'Redirecting in {timer} seconds.'
                     });
        </script>