Remember the state of left and right panels (collapsed or expanded) and keep it

I as a user collapse the panel, but after the refresh, it is expanded again. As a user, I should see the panel's chosen state (collapsed or expanded), even after refresh.