Forum: Ruby on Rails OSX Rails Session Issues

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2d3a6cee81a4dd2b7ea1902a435bb421?d=identicon&s=25 Gregg Pollack (patched)
on 2006-05-24 06:22
Hey friends,

   I need a little assistance getting one of my applications running on
OSX.

   I am able to install everything, and get my application running, but
when I try to store an object in the session in one of my apps, the
session object doesn't get stored.

   I tried running webrick, and I tried running under lighttpd.

   I tried running a regular session store, and a mysql session store.

   I created a new application, and in that instance I was ABLE to store
things in the session.

   I'm running the same code on windows and on a red hat production box,
and neither have problems storing the model in the session.

   Has anyone else run into this issue?  Any ideas?

   Thanks in advance,

-Gregg
685df76ebeb6c0d61ff5e0284830f691?d=identicon&s=25 Jim Cheetham (Guest)
on 2006-05-24 06:49
(Received via mailing list)
Does the application server have write access to the disk location that
the session files are being stored in?
6076c22b65b36f5d75c30bdcfb2fda85?d=identicon&s=25 Ezra Zygmuntowicz (Guest)
on 2006-05-24 17:13
(Received via mailing list)
Hi!

On May 23, 2006, at 9:46 PM, Jim Cheetham wrote:

>> OSX.
>>
>>    Thanks in advance,
>>
>> -Gregg
>>


Gregg-

	Have you set a custom session domain anywhere in your environment
files? Like:

ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update
( :session_domain => '.foo.com')

	I ran into this error once where I had set the session domain and
forgot about it. So anything you stored in the session would be gone
on the next request.

-Ezra
This topic is locked and can not be replied to.