# Rejecting multiple requests within same session

**URL:** <https://www.ruby-forum.com/t/rejecting-multiple-requests-within-same-session/91062>\
**Category:** Rails\
**Created:** [April 4, 2007, 7:39am UTC](https://www.ruby-forum.com/t/rejecting-multiple-requests-within-same-session/91062 "2007-04-04T07:39:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yottameter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/df705f/32.png) [@yottameter](https://www.ruby-forum.com/u/yottameter)\
**Post date:** [April 4, 2007, 7:39am UTC](https://www.ruby-forum.com/t/rejecting-multiple-requests-within-same-session/91062/1 "2007-04-04T07:39:44Z")

</div>

I’m seeing a situation where two requests with the same session id are  
being processed at the same time. Is there a way to make sure that if  
a request is being handled for a session, that request completes  
before allowing another?

For instance, I’m receiving xml, which goes through a series of steps,  
say 1-7. In step 3 of the first request, I’ll see step 1 for the  
second request inject itself into the log file at step three. The two  
requests will be intertwined in the log file until both complete.
