SANTA CLARA (KCBS)— California’s state legislature passed a bill whose goal is to protect K-12 students from marketers and identity thieves, which is now headed to Gov. Jerry Brown’s desk.

Dubbed the Student Online Personal Information Protection Act, SB 1177 would prohibit the disclosure and sale of schools’ online student data, making it the nation’s toughest student privacy bill.

READ MORE: 'Death Followed Us To This Place'; Family Flees War-Torn Yemen To Fall Victim To Oakland Violence

“I think that most parents would agree that student information should be kept confidential unless the kids or the parents want it revealed,” said KCBS Technology Analyst Larry Magid.

“The fact is that now a lot of companies are now involved in providing educational resources, often with Internet or cloud-based services. Both privacy and security of online student data are becoming increasingly important,” he said.

READ MORE: Watch The Derek Chauvin Trial Live

Many schools are outsourcing the management of student records to private companies.

Crista Sumanik with Common Sense Media which has been lobbying for the bill and said it sends a strong message to companies that hope to profit from student data.

MORE NEWS: COVID Schools: Oakland Reopens Elementary School Classrooms; Middle, High School Students Remain Remote

If signed by Gov. Brown, the bill would require that educational data be kept secure.