During the extraction of sodium, the reaction that takes place at the anode is;
Na+ (aq) + e ------------> Na(s)
Na+(l) -----------------> Na(s) + e
2Cl-(aq) -----------------> Cl2(g) + 2e
2Cl- (l) ---------------> Cl2(g) + e