Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Saving Session in Database

Go to End

2 Posts   1353 Views


Community Member, 23 Posts

29 December 2010 at 5:04am

Hello everybody,

we are about to migrate our site from one webserver to a load-balancing solution in Amazon EC2 using Elastic Load Balancer and Auto Scaling. Therefore that the session data is accessible globally. Does SilverStripe support storing session data in the database (I guest that's the only serious possibility) or is there some recommended approach?



Community Member, 10 Posts

3 June 2011 at 1:52am

Hi, did you find a solution to this?

I was looking for something similar, I've ended up storing them using the htaccess modification as stated in another thread, but here's the general idea:

php_value session.gc_probability 1
php_value session.gc_divisor 100
php_value session.gc_maxlifetime 3600
php_value session.save_path /sharedstorage/sites/domain/sessions

Not sure if that's a solution for you either, but it kind of worked for us.