trapping and redirecting URL's for login mechanisms

The wiki.rubyonrails.org isn't functioning for me at this time...

I am thinking in terms of expiring sessions much more frequently which
would cause a user logout which creates all sorts of issues - the main
one being that if they think they are connected and their session
expired, they are sent back to the login screen but that redirects them
to another page. I am looking for flexibility here...in other words, let
them go back to where they were headed when they were asked to log in
again.

Rather than dump my confused mess on this list (which I might have to
do), is there any links / samples that can give me ideas on this?

Craig

The wiki.rubyonrails.org isn't functioning for me at this time...

I am thinking in terms of expiring sessions much more frequently which
would cause a user logout which creates all sorts of issues - the main
one being that if they think they are connected and their session
expired, they are sent back to the login screen but that redirects them
to another page. I am looking for flexibility here...in other words, let
them go back to where they were headed when they were asked to log in
again.

Rather than dump my confused mess on this list (which I might have to
do), is there any links / samples that can give me ideas on this?