<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Logging off Portal - Cookies/Caching in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/logging-off-portal-cookies-caching/qaa-p/1423436#M618782</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Morgan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a bunch of SDN forums on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot delete cookies, really you just expire them which  invalidates the session.  You can use the ConfigTool under Services (probably Global Services first), then com.sap.security.core.ume.service and find the property ume.logoff.redirect.url to point to an ASP file like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;META HTTP-EQUIV="Pragma" CONTENT="no-cache"&amp;gt; &amp;lt;META HTTP-EQUIV="Expires" CONTENT="-1"&amp;gt;
&amp;lt;title&amp;gt;Cookie Killer Page&amp;lt;/title&amp;gt;
&amp;lt;script language="JavaScript"&amp;gt;
&amp;lt;!--
function delCookie() {
//	alert("inside delete cookie");
	var expireNow = new Date();
 	document.cookie = "SMSESSION=; expires=Thu, 01-Jan-70 00:00:01 GMT; domain=.&amp;lt;domain&amp;gt;.&amp;lt;com&amp;gt;; path=/";
	document.cookie = "SMTRYNO=0; domain=.&amp;lt;domain&amp;gt;.&amp;lt;com&amp;gt;; path=/";
	document.cookie = "JSESSIONID=; domain=.&amp;lt;domain&amp;gt;.&amp;lt;com&amp;gt;; path=/";
	document.cookie = "sapj2ee_*=; domain=.&amp;lt;domain&amp;gt;.&amp;lt;com&amp;gt;; path=/";
	document.cookie = "MYSAPSSO2=; path=/";
	document.cookie = "SMSESSION=NO; domain=.&amp;lt;domain&amp;gt;.&amp;lt;com&amp;gt;; path=/";
//	alert(document.cookie);
location.href = "http://www.&amp;lt;domain&amp;gt;.&amp;lt;com&amp;gt;";
}
// --&amp;gt;
&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body onLoad="delCookie()"&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This one was for invalidating all portal cookies as well as one siteminder cookie that was very persistent.  You can REM that one if you want &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;  It also performs a redirect to another URL in case you have SSO to the portal (i.e. VIA SiteMinder or Kerberos, etc...) as it would normally redirect back to the portal but if you are SSOing - you would never be able to get out without closing the browser...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh, it can be made "hidden" too so that the end-users don't see it flash by on logoff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, I think that they have to trigger the "logoff" function for this to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, have you tried the 'Empty temporary InternetFiles folder when browser is closed' setting in IE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that this helps, maybe there are other ideas out there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Judson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jul 2006 13:02:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-06T13:02:45Z</dc:date>
    <item>
      <title>Logging off Portal - Cookies/Caching</title>
      <link>https://community.sap.com/t5/technology-q-a/logging-off-portal-cookies-caching/qaq-p/1423434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are currently experiencing a problem with users not logging off Portal, but just closing their browser (x)&lt;/P&gt;&lt;P&gt;and when they go back into Portal, it does not prompt for their userid/password, but takes them directly into Portal. This probably has something to do with their cookies. Is there a setting in Portal or scripting that we could do.&lt;/P&gt;&lt;P&gt;We want the users to always logon with their userid's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All help will be rewarded !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Morgan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 10:51:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/logging-off-portal-cookies-caching/qaq-p/1423434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T10:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Logging off Portal - Cookies/Caching</title>
      <link>https://community.sap.com/t5/technology-q-a/logging-off-portal-cookies-caching/qaa-p/1423435#M618781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  This is because of cookies only. Until the cookies are active, the session of the user can be got back. I am not sure if this solution will work but give a try.&lt;/P&gt;&lt;P&gt;Go to&lt;/P&gt;&lt;P&gt;Tools -&amp;gt; Internet Options -&amp;gt; Security -&amp;gt; Custom Level&lt;/P&gt;&lt;P&gt;In the settings, choose &lt;/P&gt;&lt;P&gt;User Authentication -&amp;gt; Logon -&amp;gt;Prompt for user name and password&lt;/P&gt;&lt;P&gt;Check and tell me if it works.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Don't forget to reward if helped.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harini S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 12:28:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/logging-off-portal-cookies-caching/qaa-p/1423435#M618781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T12:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Logging off Portal - Cookies/Caching</title>
      <link>https://community.sap.com/t5/technology-q-a/logging-off-portal-cookies-caching/qaa-p/1423436#M618782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Morgan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a bunch of SDN forums on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot delete cookies, really you just expire them which  invalidates the session.  You can use the ConfigTool under Services (probably Global Services first), then com.sap.security.core.ume.service and find the property ume.logoff.redirect.url to point to an ASP file like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;META HTTP-EQUIV="Pragma" CONTENT="no-cache"&amp;gt; &amp;lt;META HTTP-EQUIV="Expires" CONTENT="-1"&amp;gt;
&amp;lt;title&amp;gt;Cookie Killer Page&amp;lt;/title&amp;gt;
&amp;lt;script language="JavaScript"&amp;gt;
&amp;lt;!--
function delCookie() {
//	alert("inside delete cookie");
	var expireNow = new Date();
 	document.cookie = "SMSESSION=; expires=Thu, 01-Jan-70 00:00:01 GMT; domain=.&amp;lt;domain&amp;gt;.&amp;lt;com&amp;gt;; path=/";
	document.cookie = "SMTRYNO=0; domain=.&amp;lt;domain&amp;gt;.&amp;lt;com&amp;gt;; path=/";
	document.cookie = "JSESSIONID=; domain=.&amp;lt;domain&amp;gt;.&amp;lt;com&amp;gt;; path=/";
	document.cookie = "sapj2ee_*=; domain=.&amp;lt;domain&amp;gt;.&amp;lt;com&amp;gt;; path=/";
	document.cookie = "MYSAPSSO2=; path=/";
	document.cookie = "SMSESSION=NO; domain=.&amp;lt;domain&amp;gt;.&amp;lt;com&amp;gt;; path=/";
//	alert(document.cookie);
location.href = "http://www.&amp;lt;domain&amp;gt;.&amp;lt;com&amp;gt;";
}
// --&amp;gt;
&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body onLoad="delCookie()"&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This one was for invalidating all portal cookies as well as one siteminder cookie that was very persistent.  You can REM that one if you want &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;  It also performs a redirect to another URL in case you have SSO to the portal (i.e. VIA SiteMinder or Kerberos, etc...) as it would normally redirect back to the portal but if you are SSOing - you would never be able to get out without closing the browser...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh, it can be made "hidden" too so that the end-users don't see it flash by on logoff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, I think that they have to trigger the "logoff" function for this to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, have you tried the 'Empty temporary InternetFiles folder when browser is closed' setting in IE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that this helps, maybe there are other ideas out there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Judson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 13:02:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/logging-off-portal-cookies-caching/qaa-p/1423436#M618782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T13:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Logging off Portal - Cookies/Caching</title>
      <link>https://community.sap.com/t5/technology-q-a/logging-off-portal-cookies-caching/qaa-p/1423437#M618783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harini,&lt;/P&gt;&lt;P&gt;Thank you for responding.&lt;/P&gt;&lt;P&gt;I did make the changes as per your message, but did not&lt;/P&gt;&lt;P&gt;have much joy.&lt;/P&gt;&lt;P&gt;We cannot make changes to each user, but have to make&lt;/P&gt;&lt;P&gt;global changes, either via a script or on the Portal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Morgan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 13:02:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/logging-off-portal-cookies-caching/qaa-p/1423437#M618783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T13:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Logging off Portal - Cookies/Caching</title>
      <link>https://community.sap.com/t5/technology-q-a/logging-off-portal-cookies-caching/qaa-p/1423438#M618784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Judson,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This looks very promising. I will make the changes and&lt;/P&gt;&lt;P&gt;restart the Portal over the weekend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will let you know the outcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Morgan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 13:12:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/logging-off-portal-cookies-caching/qaa-p/1423438#M618784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T13:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Logging off Portal - Cookies/Caching</title>
      <link>https://community.sap.com/t5/technology-q-a/logging-off-portal-cookies-caching/qaa-p/1423439#M618785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to get this to work without the logon button, you might try to create an iview which registers a call for the unload hook&lt;/P&gt;&lt;P&gt;&amp;lt;body onUnload="delCookie()"&amp;gt;&lt;/P&gt;&lt;P&gt;(think you still need the redirect of this iview, because otherwise the cokie information is not sent back to the user. Probably best to do that in a small popup window&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dagfinn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 10:45:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/logging-off-portal-cookies-caching/qaa-p/1423439#M618785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T10:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Logging off Portal - Cookies/Caching</title>
      <link>https://community.sap.com/t5/technology-q-a/logging-off-portal-cookies-caching/qaa-p/1423440#M618786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still not having much joy  with this problem.&lt;/P&gt;&lt;P&gt;I did create an asp file and set the ume.logoff.redirect.url to point to the asp file.&lt;/P&gt;&lt;P&gt;The problem is not with the logoff, but when the IE browser is closed (x).&lt;/P&gt;&lt;P&gt;We need a solution as same as when the user selects&lt;/P&gt;&lt;P&gt;the Logoff button on Portals&lt;/P&gt;&lt;P&gt;All help will be appreciated and rewarded !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Morgan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 09:14:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/logging-off-portal-cookies-caching/qaa-p/1423440#M618786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-18T09:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Logging off Portal - Cookies/Caching</title>
      <link>https://community.sap.com/t5/technology-q-a/logging-off-portal-cookies-caching/qaa-p/1423441#M618787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ANy sloution for this i am still getting the same problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 17:27:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/logging-off-portal-cookies-caching/qaa-p/1423441#M618787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T17:27:26Z</dc:date>
    </item>
  </channel>
</rss>

