1) Send the value in parameter, so you second page get the value from parameter.
2) If your both pages have same controller means it is a wizard then you can redirect the user from your apex function, before redirecting user save the value in any property so you can use this property in your second page as both pages have same controller. For more detail read about wizard in salesforce.
3) You can save the value in any place like cookies or any custom setting before redirecting user and after redirect you can clear the value from place.
Both the pages are using different controllers, and i have four columns in my page block table i want to pass the value of first three columns of the clicked row when i click on the fourth details column.
You can send the value by below apporaches
1) Send the value in parameter, so you second page get the value from parameter.
2) If your both pages have same controller means it is a wizard then you can redirect the user from your apex function, before redirecting user save the value in any property so you can use this property in your second page as both pages have same controller. For more detail read about wizard in salesforce.
3) You can save the value in any place like cookies or any custom setting before redirecting user and after redirect you can clear the value from place.