I have an application that is using FastCGI with IIS (as per the instructions described on http://wiki.rubyonrails.com/rails/pages/HowtoSetupIIS ). Unfortunately I found that refreshing a FastCGI generated page is resulting in a different session being created each time (WEBrick does not exhibit this behaviour). Does anyone have any ideas about how I can fix this?
On Oct 21, 2005, at 6:02 AM, Sitsofe Wheeler wrote:> I have an application that is using FastCGI with IIS (as per the > instructions described on http://wiki.rubyonrails.com/rails/pages/ > HowtoSetupIIS ). Unfortunately I found that refreshing a FastCGI > generated page is resulting in a different session being created > each time (WEBrick does not exhibit this behaviour). > > Does anyone have any ideas about how I can fix this?Is IIS filtering the cookies set by or sent to the Rails application? Can you verify that your browser is receiving a _session_id cookie from the application, and if so, that the value of the cookie is the same between requests? - Jamis
Jamis Buck wrote:> Is IIS filtering the cookies set by or sent to the Rails application? > Can you verify that your browser is receiving a _session_id cookie from > the application, and if so, that the value of the cookie is the same > between requests?A _session_id cookie is indeed being created but the value of that cookie is changing between requests.
Sitsofe, if you still haven''t figured this one it its a permissions problem. Just had the same thing happen to me. For some reason IIS can write the sessions out to the C:\WINDOWS\Temp folder just fine, but it cant find them again. To fix it I let all system users read/write into the temp directory. Bad practice I know, but adding the 2 IIS users didn''t seem to fix it. -Nick Anyways, setting the On 10/21/05, Sitsofe Wheeler <sitsofe-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> Jamis Buck wrote: > > Is IIS filtering the cookies set by or sent to the Rails application? > > Can you verify that your browser is receiving a _session_id cookie from > > the application, and if so, that the value of the cookie is the same > > between requests? > > A _session_id cookie is indeed being created but the value of that > cookie is changing between requests. > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
1) What is the URL you are using to access via IIS? 2) Are you using IE? What version? On 22/11/05, Nick Stuart <nicholas.stuart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Sitsofe, if you still haven''t figured this one it its a permissions > problem. Just had the same thing happen to me. For some reason IIS can > write the sessions out to the C:\WINDOWS\Temp folder just fine, but it > cant find them again. > > To fix it I let all system users read/write into the temp directory. > Bad practice I know, but adding the 2 IIS users didn''t seem to fix it. > > -Nick > > Anyways, setting the > On 10/21/05, Sitsofe Wheeler <sitsofe-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote: > > Jamis Buck wrote: > > > Is IIS filtering the cookies set by or sent to the Rails application? > > > Can you verify that your browser is receiving a _session_id cookie from > > > the application, and if so, that the value of the cookie is the same > > > between requests? > > > > A _session_id cookie is indeed being created but the value of that > > cookie is changing between requests. > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- http://www.snowblink.co.uk/
Tried with three broswers (IE, Opera, Firefox) all did the same thing, recreating sessions. Url is straight ''/whatever/action'' the app is set to the base path. I had set up rails apps on a couple of other IIS test machines with out this issue, but for some reason this one jumped up and acted all funky. -Nick On 11/22/05, Jon Lim <snowblink-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 1) What is the URL you are using to access via IIS? > 2) Are you using IE? What version? > > On 22/11/05, Nick Stuart <nicholas.stuart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Sitsofe, if you still haven''t figured this one it its a permissions > > problem. Just had the same thing happen to me. For some reason IIS can > > write the sessions out to the C:\WINDOWS\Temp folder just fine, but it > > cant find them again. > > > > To fix it I let all system users read/write into the temp directory. > > Bad practice I know, but adding the 2 IIS users didn''t seem to fix it. > > > > -Nick > > > > Anyways, setting the > > On 10/21/05, Sitsofe Wheeler <sitsofe-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote: > > > Jamis Buck wrote: > > > > Is IIS filtering the cookies set by or sent to the Rails application? > > > > Can you verify that your browser is receiving a _session_id cookie from > > > > the application, and if so, that the value of the cookie is the same > > > > between requests? > > > > > > A _session_id cookie is indeed being created but the value of that > > > cookie is changing between requests. > > > > > > _______________________________________________ > > > Rails mailing list > > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > -- > http://www.snowblink.co.uk/ > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >