Jump to content

Autologin link expired


kenashkov

Recommended Posts

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

Link to comment
Share on other sites

  • 3 months later...
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. . .

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated