ColdFusion Uncaught SyntaxError: Invalid or unexpected token jQuery

246 Views Asked by At

I am getting the following console error

(Uncaught SyntaxError: Invalid or unexpected token)

in my staging environment, but not in my DEV or TEST environment. Any ideas? I'm completely stumped.

    <script>
            $(document).ready(function(){
            $.sessionTimeout({
                warnAfter: 1500000, // 5000 (10 seconds) | 1500000 (25 minutes)
                redirAfter: 1800000, // 15000 (20 seconds) | 1800000 (30 minutes)
                Line Highlighted --- > keepAliveUrl: '[URL.Path]/keepalive.cfm',
                logoutUrl: '[URL.Path]/logout.cfm',
                redirUrl: '[URL.Path]/logout.cfm?sessiontimeout=[URL.Path]/removeddashboard.cfm%3F',
                countdownMessage: 'Your session will expire in {timer}',
                message: 'Please be advised that per OIMT guidelines, sessions of inactivity for applications can be no longer than 30 minutes.'
                });
            });
            </script>

Also, does anyone know why the browser is cutting off the string and making it on two lines and might that be the issue??

1

There are 1 best solutions below

0
On

I made the URLs a relative path to make shorter and the error issue went away.