Unable to access admin section
Submitted by firstbyte on Fri, 2010-01-29 03:47.AutoSitemap
Hi David.
Just installed the script, everything was install fairly easily until I tried logging into the admin section.
The password doesn't seem to work. I've kept the default pass.
Any ideas what might be the reason?
regards
Rod
Hello Rod,
My apologies, this is a "Year 2010" problem in the code - the cookie that is set by the login script is hard coded to expire on 1st January 2010. To fix this, look for the following code on line 145 of autositemap/admin.php:
setcookie("autositemap_password",$config_adminPassword,1262304000);...and REPLACE that with:
setcookie("autositemap_password",$config_adminPassword,strtotime("+1 month"));...which will give 1 month's access from the time the password is entered.
All the best,,
David.