seurity

When i went outside to start my car this morning it woundnt start. I try jumping the battery and everything. I thought my battery or my starter was bad. Turns out my seurity was messed up. ( i think) Is there anyway that i can reset it if it happens again? or How long does it lock my ignition down?