BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
rkgrc000
Obsidian | Level 7

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!

1 ACCEPTED SOLUTION

Accepted Solutions
rkgrc000
Obsidian | Level 7

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!

View solution in original post

1 REPLY 1
rkgrc000
Obsidian | Level 7

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!

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 437 views
  • 0 likes
  • 1 in conversation