Integrate the SalesIn B2B login / log out into your own website

SalesIn B2B provides a seamless experience for your customers to login from your website.
Please provide the following details to your webmaster / IT guru.

Paste the following code into the place in your website that you want to insert the login controls:

<script language='javascript' type='text/javascript'src="https://web.salesin.com/Javascript/jquery.js"></script>
<script language='javascript' type='text/javascript' src="https://web.salesin.com/Javascript/md5.js"></script>
<script language='javascript' type='text/javascript' src="https://web.salesin.com/Javascript/LoginControlGeneration.js"></script>
<link rel="stylesheet" type="text/css" href="https://web.salesin.com/App_Themes/Main/LoginSection.css" />
<script language='javascript' type='text/javascript'>
     initLoginSection("https://web.salesin.com", "UniqueId", "https://b2b.salesin.com", "https://auth.salesin.com");
</script>

The functionality will all be handled by the javascript written by initLoginSection.

Replace UniqueId with the one found under the Administration > SalesIn B2B Settings area of the SalesIn web application.
The option “Let your customers login from your own website” must be ticked, and your UniqueId will be shown.

Extra Functionality (optional)

When the user logs out, they will be returned to your site with a query string parameter; LogoutReason.
This will have one of the following values that you can handle and display to the user a relevant message, if you like:
0 – User deliberately logged out of SalesIn B2B by clicking the logout button
1 – The user’s session was timed out and they were forced to log out
2 – The login failed due to internal error reasons, contact SalesIn support if this ever happens; but the user won’t want details of this error.