Superconducting spin valve and triplet superconductivity