What is the use of co-relation in JMeter?

Co-relation is a process in which values can be extracted from the server response and stored in a variable and then can be used in any other request which is to follow.

For Example, for testing any login functionality if you have to use session ID/cookie ID, you can extract the value from the response of GET request of the login page and then dynamically use the same while making POST request for login.