fixed session admin old code