<p>A better way to redirect users is to store the uri in the redirection url. Storing it in a cookie causes problems if user opens two different tabs with two different uris for example.</p>
<div class="gmail_quote">On Sep 2, 2011 11:42 PM, "Rami Essaid" <<a href="mailto:rami.essaid@gmail.com">rami.essaid@gmail.com</a>> wrote:<br type="attribution">> I dont know why I am struggling with this so much but I need a bit of help.<br>
> I am trying to redirect users to a verification page and then back to their<br>> original requested URI but because of the rewrite I lose both the $uri and<br>> $request_uri variables. I figure the easiest way to solve this problem is<br>
> to store the original URI in a cookie and read it from that after the<br>> verification page. I cant seem to store the cookie correctly and read it<br>> back. Can anyone provide some direction? Also, is there any risk that by<br>
> doing this I disrupt other cookies being stored by my application?<br>> <br>> Thanks!<br>> <br>> Rami<br></div>