The keeper joined the Whites from Leeds United on a three year deal for an undisclosed fee at the start of the 2012/13.
The Preston born goalkeeper began his career at Preston North End and made his first team debut aged only 16 in a League Cup game against Coventry in 2000.
Lonergan remained at Preston for an 11 year spell making 207 appearances which included a string of 147 consecutive appearances.
He scored the only goal of his career from his own penalty area in a 1-1 draw against Leicester City in 2004.
Lonergan had a series of short term loan spells during his time with North End to Swindon Town, Blackpool, Wycombe Wanderers and Darlington.
Following Preston’s relegation to League 1 in 2011 Lonergan signed for Leeds United and made 38 first team appearances in all competitions, often wearing the captain’s armband.
After making nine appearances for the Whites during his first year at the club as he spent the majority of the season behind Adam Bogdan in the pecking order, Lonergan was given his opportunity the following season after the Hungarian picked up a knee injury.
The keeper made 21 appearances before also starting the opening game of the 2014/15 season against Watford in net.