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!
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.