<div class="text">
      
        <pre><font size="2">Hi </font>maddox<font size="2">,<br><br>I&#39;m having the session handling issue in story runner.<br><br>Small description about my applications and problem<br><br>My application was integrated with single sign on (SSO) application.<br>
<br>Both applications are developed in rails (SSO,  Normal application (i.e<br>second))<br><br>If any user logged into sso application he can directly access the<br>second application.<br><br>If any one try to access the second application , it will automatically<br>
redirect to sso application (i.e login page).<br><br>I have written the stories successfully for sso application.<br><br>but when we write the stories to second application we getting the<br>problems regarding  session.<br>
<br>I.e  in my application every controller having  before_filter<br>:login_required  which was defined in the plugins(in both applications)<br><br>We are checking the sessions and cookies in the method<br><br>When we call the actions from second application , it checking the<br>
sessions and cookies but it don&#39;t find anything<br><br>so we are getting the problem<br><br>we have tried directly to assign the session variables in given block of<br>story<br><br>i.e request.session[&#39;current_user&#39;] = User.find(1)<br>
controller.stub!(:login_required).and_return(@user)<br>template.stub!(:login_required).and_return(@user)<br><br>We did&#39;t solve this issue in stories ,<br><br>(FYI we have solved this issue in rspecs using the<br>controller.stub!(:login_required).and_return(@user))<br>
<br>main problem is we are unable to access the session variables in the<br>story (i.e in the when block)<br><br><br>Please give your ideas</font></pre>
      
  </div>