Help Center

Troubleshooting Users Getting Logged Out When Downloading Invoices: Solutions and Fixes

User logout during invoice download troubleshooting, Resolving issues with user sessions during downloads, Fixing logout problems when downloading invoices 1
Print

Symptom

When a user attempts to download an copy of the PDF invoice via the client area, they are logged out and presented with the client area login page.

Invoice Download Button

Cause

A peculiarity in pdo_mysql clients in certain server stacks causes unexpected behaviour in PHP. This is been observed more commonly on servers running CloudLinux.

Solution

Switching to the PHP native pdo_mysql driver resolves the issue and causes PHP to behave in the expected manner.

For systems operating in CloudLinux, the change can be made as follows:

1. Access the CloudLinux PHP Configuration interface on your server

2. Deselect the pdo_mysql option

3. Select the nd_pdo_mysql option:

CloudLinux PHP Options screen showing nd_pdo_mysql

The change should be immediately applied, and the download issue in WHMCS resolved.

 

 

The End! should you have any inquiries, we encourage you to reach out to the Vercaa Support Center without hesitation.


Was this answer helpful?

Still need a hand?

Our support team is on standby if this article didn't fully answer your question.

« Back