OTTAWA -- Travis Konecny scored 39 seconds into overtime, and the Philadelphia Flyers rallied from down three goals to defeat the Ottawa Senators 6-5 at Canadian Tire Centre on Thursday.

Konecny scored off the rush with a shot that trickled behind Samuel Ersson.

It was the Flyers' seventh three-goal, third-period comeback victory in team history, and the first since defeating the Buffalo Sabres 4-3 in overtime on March 29, 2021.

"Had a little 1-on-1 match going with (Ersson) there," Konecny said."He got me in the first, and I got him back."

With Joseph Woll pulled during 4-on-4 play, Jamie Drysdale walked in from the blue line and snapped a shot past Ersson at 17:27 to tie the game 5-5 and force overtime.

The Flyers scored on four of their last six shots of the game.

"It was really ugly, but in saying that, we came out on top," Drysdale said."I feel like the last month we've had to work our way back in a handful of games and it's real nice to come out on top this time."

Konecny had a goal and three assists, Cam York scored twice, Tyson Foerster had a goal and an assist, and Woll made 21 saves for the Flyers (8-11-6), who have won two straight and are 4-1-1 in their past six games.

"I think it was just show up today and have fun, play hockey, be positive," Konecny said."You know, whatever happens, happens, and hopefully I can help the team in some way to come out with the two points, and that's kind of how I approached it."

Dylan Cozens scored twice, Drake Batherson had a goal and an assist, and Claude Giroux and Philip Tomasino also scored for the Senators (14-6-3), who despite the loss extended their point streak to seven games (5-0-2). Tim Stutzle had two assists.

Ersson made 13 saves in his first game against the Flyers since he was traded to the Toronto Maple Leafs by Philadelphia on June 16. He was then traded to Ottawa by Toronto 10 days later.

"I thought it was a pretty good game," Cozens said,"made a few mistakes and they capitalized on that. But then other than that, I didn't think we gave up a ton."

Giroux gave the Senators a 1-0 lead 1:44 into the first period, tipping a point shot from Jake Sanderson past Woll.

Owen Tippett responded with a power-play goal to tie the game 1-1 at 3:52. He took a pass across the slot from Konecny and scored on a wrist shot from just inside the right circle.

Cozens made it 2-1 at 3:21 of the second, burying a one-timer into the right corner off a clean slot feed from Stutzle.

Batherson extended the lead to 3-1 with a power-play goal at 13:04, but York trimmed it to 3-2 at 18:39.

"We played a pretty good game," Senators coach Travis Green said. "It was kind of a weird game.

I don't know. I think we gave up 8-10 shots in the last 50 minutes of the game, so it's pretty complete game.

They got a couple, a couple bounces went in and all of a sudden, we lose.

Ottawa outshot Philadelphia 11-3 in the period, holding the Flyers without a shot on goal from 18:25 of the first until 16:01 of the second.

"Obviously, our second period was one of our worst periods," Flyers coach Rick Tocchet said. "Ottawa's all over us, and I think TK,'Yorkie,' they dragged this in the fight.

Give them a lot of credit.

Tomasino made it 4-2 at 38 seconds of the third, and Cozens' second goal extended Ottawa's lead to 5-2 at 5:27.

"I love the way we played," Green said. "I thought it was one of our better games that we've had in a while.

Sometimes you play really good and you don't win.

York answered on the power play less than a minute later, burying a rebound off Noah Cates' shot near the side of the net to pull the Flyers within 5-3 at 6:25.

"Beginning of the third, obviously wasn't it wasn't looking great for us, and then we turned it on," York said."So, a huge two points for the team."

Just 15 seconds later, Foerster finished a 2-on-1 with Konecny to cut it to 5-4 at 6:40

"We had a feeling that we weren't out of it," Konecny said. "I don't know why.

Sometimes when you're getting so much pressure from a team it feels like you're not able to come back, and then there's other times where you feel like you're applying pressure still, and you're going to get your opportunities, and I think that's how we felt for the most part.

NOTES: Stutzle tied Jochen Hecht (277) for the second-most assists by a German-born player in NHL history.

Konecny scored his fourth overtime goal, tied for the eighth most in Flyers history, a list led by Giroux (11).