Contractures

Hi everyone! Im new here. Wondering if any of you have experience with knee contractures? I have them on both knees that’s preventing me from straightening my legs and standing/walking. It’s highly uncomfortable and painful at times. Not sure what the solution is just yet. Tia.