Session FileStore directory


how can i specify a different directory to store sessions (default is
/tmp/). my problem is that i am running multiple rails application and
whenever i login in one application, i automatcally get logged in
another application, because the session is sharded, so i want to
specify a different session store directory per rails app.

How can i do that?