use cookie instead of session to record user
add detail link in id
fix bug of set user