Hello, I am wondering how to log out of a SAS BI portlet that will be embedded in an iframe in another website. My thought is to simply create a new 'log off' link, but I have not had success yet. I have tried adding a hyperlink via Static Content: Label to a generic log-on page (e.g., http://server:port/SASLogon/index.jsp?_sasapp=BI+Dashboard+4.3) or a similar address with a session ID from a previous session and a different user name, etc. That approach opens a new log-on screen page, but does not actually log the user out of the embedded portlet. Closing the browser does not work either. Any suggestions would be greatly appreciated!
I figured this out, so I thought I would post what worked for me in case anyone else is hoping to do the same thing. If you are working with BI Dashboard, it turns out the URL you need to link to is "http://server:port/SASBIDashboard/Logoff". I assume that you could substitute other applications (e.g., SASStoredProcess) to do the same thing in other situations. So, I'm simply including a 'Log Off' hyperlink to the URL above in the website that contains the embedded dashboard portlet in an iframe.
The HTML:
<a id="logoff" href="http://server:port/SASBIDashboard/Logoff" target="iframe1"><b>Log Off</b></a>
<iframe name="iframe1" src='http://server:port/SASBIDashboard/Director?_directive=PortletDisplayDashboard&dashboard=SBIP'>"
I learned how to create the SBIP, which needs to be customized for the end of the iframe dashboard link above, from the example on page 6 of this document:
http://support.sas.com/resources/papers/proceedings13/061-2013.pdf
If others have better solutions, please share!
I figured this out, so I thought I would post what worked for me in case anyone else is hoping to do the same thing. If you are working with BI Dashboard, it turns out the URL you need to link to is "http://server:port/SASBIDashboard/Logoff". I assume that you could substitute other applications (e.g., SASStoredProcess) to do the same thing in other situations. So, I'm simply including a 'Log Off' hyperlink to the URL above in the website that contains the embedded dashboard portlet in an iframe.
The HTML:
<a id="logoff" href="http://server:port/SASBIDashboard/Logoff" target="iframe1"><b>Log Off</b></a>
<iframe name="iframe1" src='http://server:port/SASBIDashboard/Director?_directive=PortletDisplayDashboard&dashboard=SBIP'>"
I learned how to create the SBIP, which needs to be customized for the end of the iframe dashboard link above, from the example on page 6 of this document:
http://support.sas.com/resources/papers/proceedings13/061-2013.pdf
If others have better solutions, please share!
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.