I have re pitched on yeast cake from primary with good results. I used about 1/3 of the yeast cake one week after harvesting. I have never taken any yeast from the secondary. I feel that it has been in the beer too long and not as desirable.
I have also taken some from the primary and kept it in a mason jar for a couple months then made a starter from it.
My preferred procedure is to buy a new strain. Make a starter a little larger than needed. I then make up 4 vials that are 5 ml yeast, 5 ml glycerine and 10 ml water in 20 ml vials for freezing. I then make stepped starters for a new batch. I have used yeast stored for over 1.5 years successfully. My oldest is now almost 2 years old. When I get low on a strain I will make up some more to freeze.
There is a good thread somewhere about freezing yeast.