Hi<div><br></div><div>I was building a test for a app made with dancer and I'm getting a strange behaver...</div><div><br></div><div>We need to authenticate to access this routes</div><div>so I store the user in the session.</div>
<div><br></div><div>and I have something like this:</div><div><br></div><div>$route = 'dev';</div><div><br></div><div><div> route_exists [ GET => '/widgets/'.$route ],</div><div> "a route handler is defined for /widgets/$route";</div>
<div><br></div><div>## this works fine</div><div><br></div><div><div>response_status_is [ GET => '/widgets/'.$route ], 302,</div><div> 'response status is 302 for /widgets/'.$route;</div>
</div><div><br></div><div>### this route is a forward to '/widgets';</div><div><br></div><div>and after this I loose the session.</div><div><br></div><div>I was able to trace to where the session is lost and is in</div>
<div><br></div><div>Dancer/Test.pm line 378.</div><div><br></div><div>before this I have user in the session </div><div><br></div><div>my $get_action = Dancer::Handler::render_request($request);</div><div><br></div><div>after this I don't have user in the session.</div>
<div><br></div><div>Could some one help me here?</div><div>I'm using the latest Dancer version</div><div><br></div><div>Thanks</div><div><br></div>-- <br>Dinis Rebolo<br><a href="mailto:dinisrebolo@gmail.com">dinisrebolo@gmail.com</a>
</div>