the law varies in every state.

i know this for sure though

if your parked in a pulic parking lot, and a cop has no reason to search your car, he cant search it.