Simple problem, really.
For starters, I am using InstantRails preview5…
I have a rails application that requires authentication, so I installed
the login_generator gem and set up my app to use it.
Now I want people to login right away and I want to then redirect them
to a particular controller/view after they do this properly. So I set
up the correct before filters and everything is fine… except for this
annoying bug.
If a user goes to the root path, it asks for authentication… even if
they already logged in.
Near as I can tell, everytime I visit my root url, I get a new session
object. If I do this with Webrick instead of apache, the session object
persists the way I would expect, and the problem goes away.
Is there something about the way apache handles virtualHosts that is
essentially starting a new session every time I hit the root URL?
More importantly, is there a way to fix it?
Thanks,
_Kevin