Jump to:

23478 Posts in 18950 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Saving Session in Database

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

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

Page: 1
Go to End
Author Topic: 893 Views
  • rainerh
    Community Member
    23 Posts

    Saving Session in Database Link to this post

    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?


  • pipworks
    Community Member
    10 Posts

    Re: Saving Session in Database Link to this post

    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.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.