Where do you set the session variable? 
<pre>
Session::write('course_password_'.$_course['real_id'], 'something');
</pre>