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.

Customising the CMS /

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

Silverstripe Login & Other Sites

Go to End

4 Posts   783 Views


Community Member, 43 Posts

5 December 2013 at 10:23am

Edited: 05/12/2013 10:24am


I have 2 systems running side by side, but they're using 2 different log in systems. One's a custom built system (PHP), running at for example, '', and then SilverStripe running at

I want to integrate these 2 going into the new year, but only in terms of user log ins. So, how easy would it be to use the SilverStripe log in forms and methods to log into both systems at once? Where on Earth do I start with this?

Thanks in advance!


Forum Moderator, 5521 Posts

11 December 2013 at 9:11pm

Depends how your custom system is built and what you want to use as your 'source' database and your slave. I would recommend SilverStripe be your master. In that case you need to push any SS logins to your custom app. SilverStripe does give you a hook to do this in Member 'memberLoggedIn' ( which you could push the login state too. To get users for to login to the main app you could try link them to

if you want to use it as a slave then SilverStripe includes an ability to log users in programmatically which you could write a script for.

$member = Member::get()->filter('Email', '[email protected]');


Community Member, 43 Posts

19 December 2013 at 1:52am

Thanks Will. I would use SilverStripe as the master database, so I'll give the 'BackURL' a go.

Any problems, I'll be back! :)


Community Member, 43 Posts

19 December 2013 at 3:53am

Looking into this now, and just curious - how would I know if a log in is successful, and who is logged in just by using the SilverStripe form? Is there a post variable used?

As it's going from main to sub domain, the cookie isn't transferred, so just trying to get this to link up.