Longford scored early in each half to record their first win of the season as Bray, pointless and still without a goal, remain rooted to the foot of the table.
The visitors fell behind to a sloppy goal after just nine minutes. Their failure to deal with a ball in from the right was duly punished as central defender Pat Flynn shot home from close range.
Town’s David O’Sullivan headed over from a Don Cowan cross on 28 minutes before home goalkeeper Paul Hunt kept his side in front with the stop of the half from Graham Kelly.
Bray should have been level right on the blow of the break. A mistake by Longford substitute Willie Tyrell gifted the ball to Luke Gallagher. His crossed picked out the unmarked Peter Durrad who shot wide when he should have scored.
It was a miss Bray would rue as they were 2-0 down five minutes after the interval. Cowan was a constant menace down Bray’s right side and he worked the opening when skipping past Jack Memery to whip the ball to the back post where ex-Bray striker Gary Shaw stabbed home.
LONGFORD TOWN: Hunt; Sullivan, Rossiter (Tyrell, 38 mins), Flynn, Powell; Cowan (Shannon, 80 mins), Rice, Salmon (Gorman, 59 mins), O'Connor; Shaw, O'Sullivan. BRAY WANDERERS: McGuinness; Cooney (McGlynn, 60 mins), McNally, O'Reilly, Memery; Barker; Kelly, McEvoy, Gallagher (Hanlon, 60 mins); Onwubkio, Durrad (Lyons, 77 mins). Referee: R Harvey (Dublin).