Admin-Ahead Community

Windows => Control Panels => Plesk => Topic started by: Varghese on March 09, 2015, 07:45:56 pm

Title: Horde logout Error
Post by: Varghese on March 09, 2015, 07:45:56 pm
When logout from Horde webmail, it may shows the following error

Code: [Select]
Error : This request cannot be completed because the link you followed or the form you submitted was only valid for minutes. Please try again now.
This issue can be resolved by modifying the following File.

C:\inetpub\vhosts\webmail\horde\lib\horde.php (Drive Letter will depend on where you installed Webmail/Plesk and configured IIS to load virtual hosts from)

Search for ' SESSION['horde_form_secrets'  in the horde.php

Code: [Select]
if ($_SESSION['horde_form_secrets'][$token] +  $GLOBALS['conf']['urls']['token_lifetime'] * 60 < time()) {
return PEAR::raiseError(sprintf(_("This request cannot be completed because the link you followed or the form you submitted was only valid for %s minutes"),  $GLOBALS['conf']['urls']['token_lifetime']));
}

Replace it with:

Code: [Select]
if (($_SESSION['horde_form_secrets'][$token] + $GLOBALS['conf']['urls']['token_lifetime']) * 60 < time()) {
return PEAR::raiseError(sprintf(_("This request cannot be completed because the link you followed or the form you submitted was only valid for %s minutes"), $GLOBALS['conf']['urls']['token_lifetime']));
}


This will resolve the above issue  ;).