Password protection

every time i open my computer my "password protection "icon is turned off. Turning it on works as long as computer open, but is again off after closing and then opening my computer