Jump to content

[SOLVED] panel page redirect endless loop


Matzn
 Share

Recommended Posts

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

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

  • Matzn changed the title to [SOLVED] panel page redirect endless loop

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...