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.
I'm currently using silverstripe's built in member management functions to log users in and out so that they can see various areas of front-end templates available to logged-in users only.
I also need to store additional data for logged in members in a session (wishlist/cart items). Is there a member-specific session that I can use/add to that will be automatically destroyed on logout?
Alternatively, what other ways can I do this?
You can use the Session class to store values tied to a session. Another less secure / robust way is using cookies.
Could you give me a specific example of how I could tie a value in with the member session -- sorry, haven't worked much with sessions in SS.
Ask and you shall receive! I've done up a documentation page explaining it and examples on how to use it.