Matzn Posted March 11 Share Posted March 11 Hi all, i´ve installed a clear pw 3.0.210, but i can´t login to panelpage. A js function redirect to a endless loop. I don´t found the cause. Since i have several working pw installations (older versions) on the same server, i think i only need some settings. [url deleted] But what is wrong? Link to comment Share on other sites More sharing options...
Matzn Posted March 13 Author Share Posted March 13 I found some "special" on ProcessLogin.js #login_start is setting by php on server and ts is build by javascript on client. If the time on the server is much older than the time on the client, for example more 300 seconds, you get endless reloading. var startTime = parseInt($('#login_start').val()); // GMT/UTC var maxSeconds = 300; // max age for login form before refreshing it (300=5min) // force refresh of login form if 5 minutes go by without activity var watchTime = function() { var ts = Math.floor(new Date().getTime() / 1000); var elapsedSeconds = ts - startTime; if(elapsedSeconds > maxSeconds) { window.location.href = './?r=' + ts; } }; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now