When you refinance the student loan you're essentially taking out a new loan with different payment terms and sometimes a lower interest rate.
All student loans usually have a 10 year repayment term to pay back the student loans. It's only good to refinance your student loan if you can get a lower payment and lower interest rate on the student loan.