CHEYENNE, Wyo. (AP) — A bill that would prohibit teachers and school officials from prying into students' private personal social media accounts has survived a second vote in the state House.

Representatives on Tuesday defeated an attempt to kill the bill's main purpose and kept it alive for a final vote.

Under the proposed bill, school district employees could not require or ask a student to provide his or her login information for access to private emails, text messages or other social media belonging to the student. School officials would have to ask parents for access to a student's private social media account or cellphone.

Opponents argue the proposal would make it harder for school officials to keep schools and students safe, while supporters say it would protect privacy rights and not jeopardize safety.

More From K2 Radio