I'm trying to build a logging page before a landing page that I want to "protect".

Is it possible to create session on the server in order to build a logged microsite?

  • Have you checked to see if the security settings in the page properties will work for what you need? – Adam Spriggs Feb 3 '17 at 12:52
  • I mena like variable session to control when user is logged... – MrViSiOn Feb 4 '17 at 9:43
  • You'd have to roll this yourself, but you can use the response object to set session cookies (no expiry date) using SSJS. See the SetCookie function: bit.ly/2leeIXl You could write some encrypted or obfuscated value in the cookie value that would allow you to validate that to cookie is good and the user is logged in using the GetCookieValue function: bit.ly/2ljzKkc – Macca Feb 7 '17 at 6:10
  • @MrViSiOn Glad to hear it :) – Macca Feb 9 '17 at 11:39
  • With classic landing pages there is also a feature called System Authenticated Redirection which basically forces the user to be logged into Marketing Cloud in order to access the page. That will obviously only work with users configured in the account but it's an option and sometimes sufficient. – Jim Nagorka May 25 '17 at 13:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.