kenashkov Posted March 3, 2014 Share Posted March 3, 2014 Hi, We are trying to use the autologin feature but it always returns "Link Expired". The time difference between the two servers is 72 seconds or so. In the documentation it is said that the tolerance is 15 minutes. What else could be the cause for this? Thank you 0 Quote Link to comment Share on other sites More sharing options...
mburtis Posted June 23, 2014 Share Posted June 23, 2014 Hi, We are trying to use the autologin feature but it always returns "Link Expired". The time difference between the two servers is 72 seconds or so. In the documentation it is said that the tolerance is 15 minutes. What else could be the cause for this? Thank you Did you ever determine what the cause of this was? We've been having a similar issue with the autoauth feature, and we can't track down the cause. . . 0 Quote Link to comment Share on other sites More sharing options...
mburtis Posted June 26, 2014 Share Posted June 26, 2014 Just wanted to come back and share what seemed to fix this issue for us, just in case it helps anyone else. In our case, we were automatically redirecting users to WHMCS using a dynamically-generated AutoAuth link. Since the redirect was happening at the same time the link was being generated, there was absolutely no way the link should be coming back as expired, but it was. Also, in our case, the link to WHMCS was happening on another server from where WHMCS runs, where we run our main project site. We had checked time/date settings on both servers to make sure they matched (and they did). However, we believe there was a slight (1 second?) difference causing the timestamp on the originating server to be slightly *ahead* of the server WHMCS runs on, and that this resulted in the "link expired" issue. It wasn't that the 15-minute timeframe had passed; rather, WHMCS detected that the timestamp represented a time in the future. We fixed it by subtracting 30 seconds from the timestamp before hashing it and creating the link, and, since doing that, we haven't see the issue again. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.