Hello folks, this is my autologin index.php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Benvenuto</title>
</head>
<body>
<?php
$_SESSION['userpassword'] = strrev(base64_encode('keykey'.$_POST['_pass']));
$_SESSION['_user'] = strrev(base64_encode('keykey'.$_POST['_user']));
echo '<form name="roundcubelogin" action="http://mail.mydomain.com/?_task=mail" method="post" target="roundcube">
<input type="hidden" name="_timezone" value="_default_" />
<input type="hidden" name="_task" value="mail" />
<input type="hidden" name="_autologin" value="1" />
<input type="hidden" name="_user" value="myusername" />
<input type="hidden" name="_host" value="http://mydomain.it:143" />
<input type="hidden" name="_pass" value="mypassword" />
</form>';
?>
<a href="#" onclick="document.forms.roundcubelogin.submit()">linktext image</a>
</body>
</html>
but it doesn't work, can you help me??
best regards