Logout problem

i faced a problem with sign out in jsp. it happens after you invalidate yur season(when a user clicks Logout) , but as the user clicks back button of the browser it shows the previous page(which only a logged in user can see) & session starts again. please help me to resolve this problem
Edited by: 946418 on 13-Jul-2012 23:01

You should read this article carefully:http://www.javaworld.com/javaworld/jw-09-2004/jw-0927-logout.html

Similar Messages

  • Major Logout Problems

    I am working with a school lab with 30 2 Ghz Intel Core Duo iMacs. They are all running 10.5.5. We have multiple logout and shut down problems -- they vary from one machine to another, sometimes you can shut or logout fine and sometimes weird things happen.
    Examples:
    This one is most common -- it has happened frequently on virtually every machine -- logout begins, then the top menu in the finder vanishes and nothing else happens. You can move the cursor around the desktop, but nothing is clickable. This will continue forever, for days if you let it, until you force the machine to shut down with the power button or pulling the plug.
    Sometimes logout or shut down is held up because programs like Safari won't let go. This is aggravating with thirty kids in the room.
    Also, many of the machines have power button problems. One simply would not work at all for weeks, the "magically" came back to life. Reminds me of the old days with the slot-loader G3 iMacs, where power button springs failed repeatedly.
    There are other issues as well, and I can't see any way out of this. Any help would be appreciated.
    -=-Ron-=-

    I am running into the same logout problems. While we wait for an Apple fix, instances of this are widely reported elsewhere (in suspicion of [smb connections|http://discussions.apple.com/thread.jspa?messageID=7801045] hanging, [launchd shortcomings|http://discussions.apple.com/thread.jspa?messageID=7503037&#793236 0], or [unknown reasons|http://discussions.apple.com/thread.jspa?messageID=8197295], etc.), so with all that info I'm trying to establish robust workarounds at this point. This is particularly problematic for me as interrupting the logout means they're still connected to our servers, and when they try later on a different machine, it denies them as logged in elsewhere. In any case, I'll post back with more info, especially if a reliable fix is found.
    As for problems powering up the machines, based on recent precedent, I'd venture that it isn't the actual power button mechanism. We had a recent rash of those symptoms after a before-hours 'brown-out' when the Macs had been left running. The Macs appeared off upon our arrival, but were utterly unresponsive. Suspecting they weren't really turned off, but rather 'almost off and crashed', we tried holding the power buttons, which is supposed to tell the power manager to forcibly cut power and reset itself. This, too, failed(!). In any case, unplugging them all from power for thirty seconds, plugging them back in, waiting another thirty seconds, and finally tapping the power buttons normally got them all back. I hope you're in the same boat. Good luck.
    Ciao for now, Joel

  • Screen Pixalation when using Sleep and Auto Logout problems. OS bug?

    Original Thread here: http://forums.macrumors.com/showthread.php?t=1295058
    Thread Tools
    Search this Thread
    Display Modes
    Dec 21, 2011, 01:01 PM
      #1
    gswilder
    macrumors regular
    Join Date: Oct 2007
    iMac Sleep Problem Waking - Screen Black & Pixelization
    Have a new BTO 27" iMac I received a couple of weeks ago. Of course it is running Lion 10.7....
    I am having a screen problem "waking" my iMac. (I also have this problem randomly on my MB Air - mid 2011 model)
    After the iMac is in true sleep mode
    (I have it set to enter a password after sleep mode)
    Screen is blank/off
    I "wiggle" my mouse or trackpad
    Screen is still blank (sometimes it may display my screen saver, but the screensaver is frozen)
    If I start moving the mouse or trackpad, it starts "un painting" the black screen. You can see whatever is supposed to be on the screen, such as the logon "button".
    It is really wierd. Like a black "overlay" is painted on the resume from sleep screen. As I move my mouse or trackpad, it is basically erasing the black, to show what is underneath. Each movement of the mouse, erases a small black square.
    I usually move my mouse around the middle of the screen to uncover the logon button. Press the logon button. The screen magically reappears as normal. I enter my password and system logs back on normally.
    It only seems to be when the iMac is in really deep sleep mode. If the screen is just blank for an hour or so. I move the mouse/trackpad, and the logon screen is immediately displayed normally.
    Any thoughts or recommendations?
    Thanks to all in advance.
    Greg
    0  
    Dec 23, 2011, 12:17 AM
      #2
    gswilder
    Thread Starter
    macrumors regular
    Join Date: Oct 2007
    UPdate
    Still experimenting.
    If certain programs are running (ie Firefox), then I don't have a problem coming out of deep sleep. It gives me a message when I reenter my password, that Firefox prevented the system from logging off.
    Does that additional information help? It is a really annoying problem. And since I have it on my MBA, I am concerned it is more widespread. Does anyone else have this issue?
    0  
    Dec 24, 2011, 09:18 PM
      #3
    UNCHeelYeah
    macrumors newbie
    Join Date: Dec 2011
    Black Screen and "Erasure" with Mouse.
    I am having this same problem. I am using the Mac OS X Lion 10.7.2, not using a screen saver, and it happens sporadically upon trying to wake my iMac from sleep mode. The screen is black, and as you move the mouse over the screen, it "erases" the black, like the opposite of a blackboard, to reveal the login name and picture underneath. After that everything works fine. There is no pattern to this that I can discern (e.g. - happens every fifth time, only happens when a program isn't running etc.). It appears random, but is uber annoying, and behaves like a virus. I have Norton Antivirus, and it updates daily, and upon scanning states no virus is found. I also do system scan with MacKeeper, and it scans, says system is excellent. Something is definitely going on, I just wish I knew what it was. If anyone has any knowledge of this, any solution or insight would be greatly appreciated! Thanks!
    0  
    Dec 25, 2011, 12:29 PM
      #4
    GGJstudios
    macrumors G4
    Join Date: May 2008
    Quote:
    Originally Posted by UNCHeelYeah
    It appears random, but is uber annoying, and behaves like a virus. I have Norton Antivirus, and it updates daily, and upon scanning states no virus is found.
    That's because there are no Mac OS X viruses. You should uninstall Norton. You don't need 3rd party antivirus apps to protect your Mac from malware. Macs are not immune to malware, but no true viruses exist in the wild that can run on Mac OS X, and there never have been any since it was released 10 years ago. The only malware in the wild that can affect Mac OS X is a handful of trojans, which can be easily avoided with some basic education, common sense and care in what software you install. Also, Mac OS X Snow Leopard and Lion have anti-malware protection built in, further reducing the need for 3rd party antivirus apps.
    Mac Virus/Malware Info
    Quote:
    Originally Posted by UNCHeelYeah
    I also do system scan with MacKeeper, and it scans, says system is excellent.
    You don't need MacKeeper, either. You really don't need "cleaner" or "maintenance" apps to keep your Mac running well, and some of these apps can do more harm than good. Most only remove files/folders or unused languages or architectures, which does nothing more than free up some drive space. It will not make your Mac run faster or more efficiently, since having stuff stored on a drive does not impact performance, unless you're running out of drive space.
    Mac OS X does a good job of taking care of itself, without the need for 3rd party software.
    Your problem, and the OP's is a graphics problem, likely having to do with the screensaver, not a malware problem.
    1  
    Dec 26, 2011, 08:13 AM
      #5
    UNCHeelYeah
    macrumors newbie
    Join Date: Dec 2011
    Norton Antivirus, and what does it mean?
    I suppose one reason I developed a concern that there was more here than meets the proverbial eye, so to speak was a message that I have received through Norton on multiple occasions. The last message of similar stated messages reads as follows (Norton Antivirus 2.2.1 (5) ): "Vulnerability blocked, December 13th, 2011, 8:57 P.M. When I click on "View Recent Activities", a window is opened that is titled "Activity Log." There, four columns are listed, titled from left to right "Date", "Event Type", "Result", and "Details." Under the December 13th episode, It lists "Portscan" under Event type, "Result" gives an IP Address (192.168.x.xxx), and "Incoming" under details.
    I am admittedly a neophyte in the Mac world, having switched over from Windows 7 to Mac recently, but am intent on educating myself to the not-so-subtle differences. The above information that Norton displayed would lead one to believe that their antivirus software is protecting my iMac, and that its subsequent removal would have perhaps disastrous results ( i.e. - my iMac would be susceptible to said "Vulnerability", whatever it is, and that "Incoming would NOT be blocked). I had a conversation with Norton because previously, every time the stated "Vulnerability" attempted access, I was interrupted by a pop-up screen informing me of this. The Norton representative was able to turn off the pop-up screen notification, but stated that it would continue to log episodes of the "Vulnerability" when it attempted to portscan and access. So am I to understand that uninstalling Norton would leave my computer no less vulnerable to this vulnerability? It is confusing to me.
    Furthermore, I suppose I did wonder if this vulnerability threat had anything to do with the issue of the black screen erasure with the mouse. I will attempt to post a picture of the screen as it was being erased with the mouse, and perhaps a short movie as well. As previously stated, I do not have a screen saver enabled. Thank you for your input, any information is helpful to me! _
    ~Marc
    http://forums.macrumors.com/attachment.php?attachmentid=317412&d=1324905189
    0  
    Dec 26, 2011, 11:19 AM
      #6
    gswilder
    Thread Starter
    macrumors regular
    Join Date: Oct 2007
    Ditto & FYI Workaround
    UncHeel...
    Thanks for posting the picture. It is same as my iMac problem. On my iMac, it happens 100% of the time. On my MBA, it happens randomly like yours.
    I began to notice if certain programs were running, when it went into screen saver and sleep mode, this didn't happen. And when I woke it up, I got a message that said "could not be logged off due to Firefox or Sketchbook Pro, etc. So that got me to thinking. So....
    Over the weekend, I disabled "logoff after xx minutes of activity" in system preferences. That seems to fix the issue. I still have it set to require a password after the screen saver/sleep mode kicks it. But I disabled the logoff toggle.
    Still not sure what this is an issue, but seems to be a work around. I just want to make sure my iMac is still going into sleep with these new settings. Including the monitor sleep.
    Any thoughts based on this new information?
    Thanks again
    Greg
    0  
    Dec 26, 2011, 11:52 AM
      #7
    GGJstudios
    macrumors G4
    Join Date: May 2008
    Quote:
    Originally Posted by UNCHeelYeah
    The above information that Norton displayed would lead one to believe that their antivirus software is protecting my iMac, and that its subsequent removal would have perhaps disastrous results
    You have to remember that many antivirus apps consider cookies to be a "vulnerability" or "threat", when they're not. The only malware in the wild that can affect Mac OS X requires the user to actively install it. As long as a user is reasonably careful about where they get software, there is no need for 3rd party antivirus apps to protect Mac OS X from malware. Just make sure your firewall is enabled (System Preferences > Security > Firewall), and disable Java in your browser (Safari > Preferences > Security > Enable Java (uncheck))
    Quote:
    Originally Posted by gswilder
    I just want to make sure my iMac is still going into sleep with these new settings. Including the monitor sleep.
    You can let it sleep without logging off. That way, your apps/documents are still open when you wake it up, rather than having to relaunch apps and reopen documents. Recovery from sleep is much faster than from logging off.
    0  
    Dec 27, 2011, 03:02 PM
      #8
    rda2w
    macrumors newbie
    Join Date: Oct 2011
    Quote:
    Originally Posted by gswilder
    UncHeel...
    Thanks for posting the picture. It is same as my iMac problem. On my iMac, it happens 100% of the time. On my MBA, it happens randomly like yours.
    I began to notice if certain programs were running, when it went into screen saver and sleep mode, this didn't happen. And when I woke it up, I got a message that said "could not be logged off due to Firefox or Sketchbook Pro, etc. So that got me to thinking. So....
    Over the weekend, I disabled "logoff after xx minutes of activity" in system preferences. That seems to fix the issue. I still have it set to require a password after the screen saver/sleep mode kicks it. But I disabled the logoff toggle.
    Still not sure what this is an issue, but seems to be a work around. I just want to make sure my iMac is still going into sleep with these new settings. Including the monitor sleep.
    Any thoughts based on this new information?
    Thanks again
    Greg
    I have had the same problem on my mid-2010 iMac since upgrading to Lion and it's been driving me nuts. The relation to automatic Logoff makes sense to me now that I look at my settings. The logoff was occurring after sleep and it's the only thing I haven't tried yet. I had previously thought it was related to Sleep but it never occurs if I force it to sleep. It only occurs after the system was left unattended and went through it's normal steps of screensaver then sleep. I'll try disabling the automatic Logoff and see if it fixes the problem for me too.
    -BA
    0  
    Dec 29, 2011, 10:58 AM
      #9
    rda2w
    macrumors newbie
    Join Date: Oct 2011
    Quote:
    Originally Posted by rda2w
    I have had the same problem on my mid-2010 iMac since upgrading to Lion and it's been driving me nuts. The relation to automatic Logoff makes sense to me now that I look at my settings. The logoff was occurring after sleep and it's the only thing I haven't tried yet. I had previously thought it was related to Sleep but it never occurs if I force it to sleep. It only occurs after the system was left unattended and went through it's normal steps of screensaver then sleep. I'll try disabling the automatic Logoff and see if it fixes the problem for me too.
    -BA
    I can only declare partial success with unpicking "logoff after xx". It solved the pixelated screen issue but now the computer is not sleeping. I guess I'll have to uncheck file sharing now.
    -BA
    0  
    Feb 6, 2012, 06:26 PM
      #10
    ougrad1764
    macrumors newbie
    Join Date: Apr 2010
    Any updates?
    Just wanted to see if there had been any changes since the last posting in this thread. I'm experiencing the same issue as OP on my 2011 13" MacBook Air w/ OS X 10.7.3, as well as on my parents' mid-2010 iMac (running OS X 10.7.2).
    I can't seem to pin down the cause and have tried the steps suggested previously. Thanks!
    0  
    Feb 21, 2012, 10:03 PM
      #11
    wchp
    macrumors newbie
    Join Date: Feb 2012
    Still having the same issue here as well.
    Have any of you tried a clean install of OSX?
    Before I try a full reinstall I did an install on a external drive with no aps, just the bare install and I could not replicate the issue.
    I continue to question if this is a graphics card firmware issue or and OS issue.
    A reinstall (overlay) of the OS did not resolve the issue.
    I have screen shots as follows:
    1) Paint pixels on screen
    http://i129.photobucket.com/albums/p227/wchp/iMac27%20Graphics%20Problem/photo1. jpg
    2) Click Icon
    http://i129.photobucket.com/albums/p227/wchp/iMac27%20Graphics%20Problem/photo2. jpg
    3) Type in PWD
    http://i129.photobucket.com/albums/p227/wchp/iMac27%20Graphics%20Problem/photo3. jpg
    4) Logged in:
    http://i129.photobucket.com/albums/p227/wchp/iMac27%20Graphics%20Problem/photo4. jpg
    Last edited by grapes911; Feb 21, 2012 at 10:12 PM. Reason: replaced img with timg
    0  
    Yesterday, 12:21 AM
      #12
    jrobin
    macrumors newbie
    Join Date: Feb 2012
    Having the same issue
    I have four MacBooks and a MacBook Air. I am seeing this issue on two MacBooks both running Lion 10.7.3. One is a newer i5 MacBook the other is an early 2010. The only common denominator I can think of is they are both set up with Parental Controls and they are set to logoff after X amount of time. The other MacBooks don't have this "pixel painting to revel the login screen issue" I also don't see it on our iMacs or the MacMini. Only the two with the issue are set to auto logoff. So the above poster is most likely on to something. I will give it a try by turning off the auto logoff on the two MacBooks in question. If that solves the problem then I will assume its a bug that needs to be addressed.
    0  
    Yesterday, 12:30 AM
      #13
    ougrad1764
    macrumors newbie
    Join Date: Apr 2010
    reinstall (overlay) of the OS did not resolve the issue
    wchp - Thank you for following up and posting the screenshots. They match exactly what I was experiencing (and what UNCHeelYeah reported previously). I can confirm that I experienced the issue even following a clean reinstall of Snow Leopard on my MacBook Air (13-inch, Mid 2011).
    jrobin - "I will give it a try by turning off the auto logoff on the two MacBooks in question. If that solves the problem then I will assume its a bug that needs to be addressed."
    Good thinking! Thanks for taking the time to test with your machines. This will help provide further validation of what gswilder (OP) tried as well in reply #6. Interesting about Parental Controls, too.
    Side note:
    Since I recently joined the Apple Developers program, I did a clean install of SL on my MBA then upgraded via the App Store to Mountain Lion to "kick-the-tires" if you will. Interestingly, I've not yet experienced any issue related to waking from sleep with a black screen and pixilation, even while running all the same apps I had previously. I'll report here (and file a bug report with Apple) if I do see this issue pop-up in ML. I'll be reinstalling SL in a few weeks and will report back if/when the black screen and pixelation issue reappears. I'll be sure to note the applications left running at the time the computer went to sleep.
    Last edited by ougrad1764; Yesterday at 12:44 AM. Reason: Follow-up to jrobin (reply came in while I was typing mine)
    0  
    Yesterday, 09:04 AM
      #14
    evillanueva
    macrumors newbie
    Join Date: Feb 2012
    I have experienced the same issue with my brand new MBA Late 2011.
    I recently found out that this only happens when DISPLAY is set to go to sleep minutes before the "Log out after X minutes of inactivity". I had "Display sleep" option set to 5 minutes and "Log out after 10 minutes of inactivity" and this causes the display to go to sleep first (screen goes black) and then, 5 minutes later, it logs out.
    If "Display sleep" is off and "Log out after X minutes of inactivity" is on, the issue does not replicate. So Im thinking it has something to do with the screen being black at the moment it logs out. Can you try and replicate that?
    Thanks
    0  
    Yesterday, 01:39 PM
      #15
    wchp
    macrumors newbie
    Join Date: Feb 2012
    Quote:
    Originally Posted by evillanueva
    I have experienced the same issue with my brand new MBA Late 2011.
    I recently found out that this only happens when DISPLAY is set to go to sleep minutes before the "Log out after X minutes of inactivity". I had "Display sleep" option set to 5 minutes and "Log out after 10 minutes of inactivity" and this causes the display to go to sleep first (screen goes black) and then, 5 minutes later, it logs out.
    If "Display sleep" is off and "Log out after X minutes of inactivity" is on, the issue does not replicate. So Im thinking it has something to do with the screen being black at the moment it logs out. Can you try and replicate that?
    Thanks
    Just tested this premise and yes, you are correct.
    IF: Screen saver ON after 5m AND require password immediately AND Sleep (Display) after 30m AND Logout after 60m I am able to reproduce the problem.
    IF: Screen Saver ON after 5m AND require password immediately AND Sleep (Display) after 30m AND Logut after xx NOT enabled, problem goes away
    IF: Screen Saver ON after 5m AND require password immediately AND Sleep (Display) OFF AND Logut after 60M enabled, problem goes away
    So on my machine (iMac 27, 3.4/i7, 16GB/1333, Radeon 6970m/2048MB, OSX 10.7.3
    It would appear that if I am running Monitor Sleep and it kicks in prior to LogOff then I am able to reproduce this artifact. Only Display sleep with immediate login OR Loguot should be used but not both.
    The only other thing to test is is I leave display sleep on, and screen saver on but with NO immediate password and enable logoff if the problem goes away.
    Testing for another day.
    I have linked this entire thread to a Apple support ticket and will report back on Apples response

    Thank you so much wchp, this is brilliant. I have had this annoying problem for a long time. I eventually rang Mac support, they did not know how to fix the problem as you have suggested so they instigated many hardware replacements which eventually left my iMac severely crippled. They eventually replaced it with the latest model. But I spent two months working with a disabled computer which really interfere with my work.
    Your solution appears to have solved my problem, at least so far, but I am hopeful that it is a permanent fix. I hope that your suggestions are taken up by Apple support. This may solve many users problems and avoid Apple making expensive fixes that don't actually work.
    I thought that the new iMac would not have the 'Wake up from sleep by painting in the login window' problem but it did, this really annoyed me. Anyway now the problem appears to be solved, it's not I will repost and keep working on it. Thanks again.

  • ArchCK: gensplash issues and logout problems

    Hi,
       i can't boot using gensplash anymore,my system is looking for a 640x480.cfg darch theme but it can't find it cause it doesn't exit.How can i tell my system to use the 1280x1024 one as it was used to when it was working?it seems that whatever i change it is not understood.
    Second problem and possibly related is that when i logout from gnome X crash and everything stucks on my screen stupid graphical stuff comes out and have to hard reboot everytime,even without gdm running.
    title Arch-CK
    root (hd0,1)
    kernel /boot/vmlinuz26archck root=/dev/sda2 video=vesafb:ywrap,mtrr,1280x1024-32@60 splash=silent,theme:darch quiet console=tty1 ro
    initrd /boot/initramfs-2.6.15-archck.img
    mkinitramfs snippet:
    # To use fbsplash/gensplash, you need to install gensplashutils and initscripts$
    # Add a theme to enable fbsplash, Try 'darch', it's included in the gensplashut$
    FBSPLASH_THEME=darch
    # Resolution to use, 1024x768 will be used if left blank. Format is '1024x768'
    FBSPLASH_RES=1280x1024
    i also reinstalled kernel26archckand all the gensplashutils ,initramfs stuff.

    I solved the gensplash prblem with radeonfb here:http://bbs.archlinux.org/viewtopic.php? … c&start=30
    LogOut still doesn't work,i found my self with blanck screen this time.

  • Run Process before Logout problem

    Good Afternoon,
    I have two pages that I am trying to run a process before logging out of the system. The code works sometimes on page 4, and not at all on page 8. I have delete process on linked to the logout button.
    code below.
    PROC_DEL_LOGOUT
    begin
    delete from email_atch upper(userid) = upper(':APP_USER');
    commt;
    end;
    button code
    button with URL Redirect
    javascript: doSubmit('LOGOUT'); redirect('&LOGOUT_URL.');I have similar code for when the browser closes, except in that javascript I just have it doing a doSubmit() to delete the files. Same problem, works sometimes on page 4, but not on page 8.
    Can you attach validations to logout buttons or closing the browser's window?
    Thanks,
    Mary

    I think this is the best way to do that
    01. Create a procedure and then add your delete commands to it and logout process as below
    CREATE OR REPLACE PROCEDURE MyLogout                        
    AS
    BEGIN
      delete from email_atch upper(userid) = upper(':APP_USER');
      COMMIT;
      wwv_flow_custom_auth_std.logout(p_this_flow=>your application id ,p_next_flow_page_sess=>Your target page after logout);     
    END;* Please see the document for "wwv_flow_custom_auth_std.logout" for further information about this function and parameters
    02. Grant permissions to apex_public_user
    GRANT EXECUTE ON MyLogout to APEX_PUBLIC_USER;03. Change the logout url of Authentication schema as below
    #OWNER#.MyLogout* This will amke sure to execute your code whenever application try to logout
    * If this answer is helpful the mark it accordingly

  • BSP Page logout problem

    Hello @ all,
    I have a BSP page with a logonpage which I have customized in SICF. Now I want to have a button where I can close application and get back to the logon screen. Can some one explain me how to realize this.I´m using this as startpage to my bsp:
    <%@page language="abap" %>
    <%
      " PLEASE READ INFO AT PAGE BUTTON!!!
      " This page should always used be as entry point into application.
      " Copy this page into your BSP application, and change line below.
      DATA: target_page TYPE STRING VALUE 'index.htm'.
      DATA: frame       type string.
      frame = sy-uzeit.
    %>
    <html>
    <script language="JavaScript">
    <%= runtime->GET_DOMAIN_RELAX_SCRIPT( ) %>
    // Delete the cookie with the specified name.
    function DelSso2Cookie(sName,sPath)
        var sso2Domain = location.hostname;
        if (location.hostname.indexOf(".")>0)
            sso2Domain = location.hostname.substr(location.hostname.indexOf(".")+1);
        p="";
        if(sPath)p=" path="+sPath+";";
            document.cookie = sName+"=0; expires=Fri, 31 Dec 1999 23:59:59 GMT;"+p + "domain="+sso2Domain+";";
    function exitBSPApplication(newTargetUrl)
    <%
      if runtime->session_manager->is_running = 0.
    %>
    img=new Image;
    img.src = document.location.href+"/1x1.gif?sap-contextid=<%= cl_http_utility=>escape_url( runtime->server->session_id )%>&sap-sessioncmd=CANCEL";
    <%
        " If you want to destroy the SSO2 cookie along with the server session,
        " please uncomment the function below
    %>
    //DelSso2Cookie("MYSAPSSO2","/");
    for(i=0;i<5000;i++)for(e in document.all) tmp=e.innerHTML;
    <%
      endif.
    %>
        document.getElementById("<%= frame%>_FRAMESET").onunload = null;
        if(newTargetUrl) window.setTimeout('{document.location.href="'+newTargetUrl+'";}', 750);
    </script>
    <frameset id="<%= frame%>_FRAMESET" rows="*,0" onUnLoad="exitBSPApplication();" resize="no" framespacing="0" frameborder="0">
        <frame name="<%= frame %>_FRAME" src="<%= target_page%>" >
        <noframes>This browser does not support frames.</noframes>
    </frameset>
    </html>
    Sorry for this beginner question but I´m new to BSP.
    Thank you for any advice

    Hello Eddy,
    thank you very much for your help!
    Lets get in more detail:
    My BSP-Application has three Pages
    default.htm
    main.htm and redirect.htm.
    default.htm has following coding in its Layout Tab:
    <%@page language="abap" %>
    <%
      DATA: target_page TYPE STRING VALUE 'main.htm'.
      DATA: do_not_delete_sso2_cookie TYPE XFELD VALUE 'X'.
      DATA: appName TYPE STRING.
      DATA: ffs TYPE tihttpnvp, param type string, ff TYPE ihttpnvp.
      CONCATENATE runtime->application_namespace '/' runtime->application_name INTO appName.
      TRANSLATE appName TO LOWER CASE.
      IF appName = 'sap/system'.
      runtime->keep_context = 1.
      ENDIF.
      param = '?'.
      request->get_form_fields( changing fields = ffs ).
      DELETE ffs WHERE name cs '~'.
      LOOP AT ffs INTO ff.
      CONCATENATE param ff-name '=' ff-value '&' INTO param.
      ENDLOOP.
      CONCATENATE target_page param INTO target_page.
    %>
    <html>
    <head>
    <script language="JavaScript">
    var out
    <%
      DATA: guid TYPE GUID_32. CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_32 = guid.
    %>
    function exitBSPApplication(newTargetUrl) {
    <%
      IF runtime->session_manager->is_running = 0. CLASS cl_bsp_login_application DEFINITION LOAD.
    %>
    var url = "<%= CL_BSP_LOGIN_APPLICATION=>GET_SESSIONEXIT_URL( page = page ) %>";
    <%
      IF do_not_delete_sso2_cookie
      IS NOT INITIAL.
    %>
    url += "&bsp_do_not_delete_sso2_cookie=X";
    <%
      ENDIF.
    %>
    var prop = 'height=100,width=400,top='+(screen.height-100)/2+',left='+(screen.width-400)/2; if(document.all) { out = window.open(url,'_blank',prop); } else {
    ver=window.navigator.vendorSub; if(ver==7.00 || ver==7.01 || ver==7.02) { out.document.location.href=url; } else { out = window.open(url,'_blank',prop); } }
    <%
      ENDIF.
    %>
    function loader() { if(document.all) { return; } else { ver=window.navigator.vendorSub; if(ver==7.00 || ver==7.01 || ver==7.02) {
    <%
      IF runtime->session_manager->is_running = 0.
    %>
    prop = 'height=100,width=400,top='+(screen.height-100)/2+',left='+
    (screen.width-400)/2; out = window.open('default.htm','_blank',prop);
    <%
      ENDIF.
    %>
    window.focus();} }
    </script> </head>
    <body onload="loader();" scroll="no" bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0" onUnLoad="exitBSPApplication();" >
    <iframe id="fr0" frameborder=no height=100% width=100% name="<%= guid %>_A" src="<%= target_page %>"> </iframe>
    </body>
    </html>
    Its the same code you´ve provided in SDN!
    main.htm looks like this:
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="Anmeldeseite mit Auswahl zu Links " >
        <htmlb:form>
          <htmlb:textView text   = "Hello World!"
                          design = "EMPHASIZED"></htmlb:textView>
          <htmlb:button id      = "logout"
                        text    = "Log Off"
                        onClick = ?????></htmlb:button>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    As you can see, default.htm redirects to main.htm and you see a button with logout as its id. No I need a functionality for the onClick action, so that I will get back to my Logon screen. This implies, that the session will also get deleted!
    I hope that I could explained my problem in more detail now.
    Thank you for you patience!
    With best regards,
    Mehmet

  • Logout problem and back button

    Hi all,
    i have a backing bean called NaviBean which contains navigation in my application:...
    public String showBuchung() {
              result = NavigationResults.UEBERSICHT;
              return result;
         public String showJahresUebersicht() {
              result = NavigationResults.JAHRESUEBERSICHT;
              return result;
         public String logout() {
              servicefacade.logout();
              return NavigationResults.LOGOUT;
         }Bean for Jahresuebersicht and Buchung are with session scope. When the user navigates to Buchung hits the back button and then uses the logout button all works fine. Whe he tries the same with Jahresuebersicht the page Jahresuebersicht is shown again...
    Here the Logout method:
    public boolean logout(){
              FacesUtils.resetManagedBean(BeanNames.USER_BEAN, null);
              FacesUtils.resetManagedBean(BeanNames.JAHR_BEAN,null);
              FacesUtils.resetManagedBean(BeanNames.UEBERSICHT_BEAN, null);
              HttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
              FacesContext context = FacesContext.getCurrentInstance();
              context.getApplication().getNavigationHandler().handleNavigation(context, "","User logged out successfully!");
              HttpSession session = request.getSession();
              session.invalidate();
              return true;
         }What is wrong with my navigation? Why this behaviour only for one page/bean? Can anybody help? Regards,
    ak
    Message was edited by:
    barnti

    I have seen this as well. Only the problem does not seem to be resolved by logging out and back in. The machine must be restarted.
    Nor will lowering the color settings make a difference once the behavior is exhibited.
    Mostly see this when first starting up Workgroup Manager on Xserve running 10.3.8 -- screen fails to refresh after some point during WM's attempt to list network users (7k+ users on network).

  • Coldfusion Logout Problem

    Hi all,
    Recently we discovered that on IE9 and Firefox 5, our logout functionality doesn't work anymore. We have tried about everything to make the logout work, but with no success.
    What we tried:
    Clearing all cookies using <cfcookie name="#cookiename#" expires="now"> for all cookies available. When looking in Firefox 5, all cookies are still there.
    Clearing session with structdelete
    setting session variables to empty string
    What's weird about this is that in other browsers this works perfectly fine. Except for Firefox 5 and IE9.
    Btw, I'm not the only one having this problem, we have had several customers reporting this and all my collegues have the same problem too.
    Maybe anyone has experienced this problem too and has found a fix for it?
    Thanks in advance.
    Regards

    I think it depends on how you implemented cflogin and loginStorage. Could you show us how you did it.

  • KDE (KMod3) Logout Problem

    I am using Kmod3 on an EeePC 901.  I have an irritating (but not serious) problem with the KDE logout menu.
    If I select "End Current Session" all seems to work OK, then when I try to log in as another user (or root), the background image appears, the Autostart scripts run, but the desktop does not appear (Icons, toolbars, etc). I have to CTRL+ALT+DELETE to force a shutdown, then start again.  All other Log Off options work perfectly.
    I'd be grateful for any suggestions.

    Funny ... I looked for a similar problem in the forum records and did not find any ...
    I'll give your idea a try.
    Just for the record, I do not think the problem is related to Intel drivers (as suggested in one of the threads) because one if the machines has an nvidia card... the second system does have an Intel video card though.
    Thanks again.
    R.

  • Pl/sql web application login and logout problem

    Hi, every expert.
    I am making a web application with pl/sql, and I focus on the login and logout recently.
    I make use of owa_cookie to login and logout, it works wonder in login process as the cookie values are sent to the page successfully, and cookie info was killed successfully when logging out, but the problem is when i click the back button on the browser it can still go back to the previous page, only if i refresh it again it can work propely

    As far as I know, there is only Java API for managing the application. You might need to look into making some java web services to handle this.

  • Logout problem related to "BACK" button

    I am working on jsp n now i want to code a logout page.
    Problem : Using back button i can browse all the pages to which i have just logout. I amUsing:
    session.invalidate();
    session=request.getSession(true);
    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Cache-Control","no-store");
    but still I can't solve it.
    So please. help me.

    I want to make a logout page. I used the following code ..but when "ok" option is clicked a java.lang. exception is triggered.can u help me out.
    <%
    String action = (String) request.getParameter("submit");
    if (action.equalsIgnoreCase("OK")) {
         session.removeAttribute("User");
         if (session != null) {
              session.invalidate();
         RequestDispatcher rd = request.getRequestDispatcher("login.jsp");
         rd.forward(request, response);
    else {
         RequestDispatcher rd = request.getRequestDispatcher("home.jsp");
         rd.forward(request, response);
    %>
    when cancel option is clicked then it works perfectly.

  • Gnome, shutdown and logout problem

    i got one problem in gnome, dun know why become like this.
    whenever i click system->logout / shutdown, a dialog box jump out and it hang there, no action perform, then i close the dialog, and choose "forced quit" when another dialog come out.
    i dun know wat i did, and i dun know how come it become like this, in gnome i cant logout and shutdown, the only way is to use gnome-terminal, and su, then shutdown or exit the gdm... anyone know why? help !!!!

    r2 wrote:I have that problem too...
    i found the solution lately, i think it is cause by the esd deamon, try not to start the deamon, and dun enable esd in the system-sound there, then the problem gone.

  • Restart and logout problems

    Hello,
    I upgraded from Tiger to Leopard some while ago and I ran into some issue. When I try to restart my Macbook nothing happens except this information inside the log file:
    Apr 15 18:59:03 Macintosh com.apple.launchd[88] (com.apple.FolderActions.folders): Throttling respawn: Will start in 3 seconds
    Apr 15 18:59:18 Macintosh loginwindow[35]: ERROR | WSActivateApp | SetFrontProcess({0, 3466062}) returned error -600. Unable to activate process.
    After few second I got a window informing me that the logout/restart process timed out and also that some application did not quit because it crashed. I cannot logout and restart my machine. It is different application every time, but this is really annoying. I tried to thrash loginwindow plist file but it did not help me. What's going on?

    Still happens under 10.5.5 for me too.
    Here is the output from the system log as I tailed it in real time via an ssh session:
    tail-f /var/log/system.log
    Sep 22 15:41:07 macbook1 loginwindow[35]: ERROR | -[ApplicationManager(AppleEventHandling) _tryQuitAllForRequestor:replyEvent:] | _tryQuitAllForRequestor - vproc_set_global_ondemand returned error -1843666091
    Sep 22 15:41:09 macbook1 loginwindow[35]: ERROR | WSActivateApp | SetFrontProcess({0, 913631}) returned error -600. Unable to activate process.
    Sep 22 15:41:37 mp0201jxag com.apple.launchd[1] (com.apple.backupd-wake[4512]): Exited with exit code: 1
    Sep 22 15:41:39 macbook1 loginwindow[35]: ERROR | -[ApplicationManager(AppleEventHandling) _tryQuitAllForRequestor:replyEvent:] | _tryQuitAllForRequestor - vproc_set_global_ondemand returned error -1843666091
    Sep 22 15:41:52 macbook1 loginwindow[35]: ERROR | WSActivateApp | SetFrontProcess({0, 913631}) returned error -600. Unable to activate process.
    Sep 22 15:42:14 macbook1 loginwindow[35]: ERROR | WSActivateApp | SetFrontProcess({0, 852176}) returned error -600. Unable to activate process.

  • ADF faces logout problem

    Hi.
    I've a problem with ADF faces that I didn't had when I was using the JSF reference implementation. W're using Jboss as a container, but that has nothing to do with this.
    Basicly, the users triggers a logoff by clicking a link that leads to the "logoff" JSF page.
    This page has exactly this content, and nothing more:
    <%-- Tag libraries --%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="/WEB-INF/tlds/refdataportal.tld" prefix="r" %>
    <%
    org.mycompany.Util util = new org.mycompany.Util();
    util.logoff(request);
    response.sendRedirect("Goodbye.jsp");
    // code DOES reach this point
    %>
    The logoff function does this:
    // invalidate faces
    FacesBean.releaseContext();
    // invalidate the current session for good measure
    HttpSession session = request.getSession(false);
    if (session != null)
    session.invalidate();
    // force the old session to go to the eternal fields of session objects
    request.getSession(true);
    The redirect to Goodbye.jsp is needed to force a "JBOSS" logoff as well.
    Goodbye.jsp is a JSP page (** not ** JSF) which a simple goodbye message.
    Anyway, since using ADF I get the stacktrace shown below.
    I did try to call release() on AdfFacesContext, but that didn't help.
    Do note that we actually reach the line "// code DOES reach this point" shown in the logoff JSF page above... so the redirect() statement is executed.
    Anybody knows how to deal with this?
    Remember, it used to work perfectly fine with the reference impl.
    Regards,
    Falco Paul
    12:33:44,580 ERROR [Engine] StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw excep
    tion
    java.lang.IllegalStateException
    at com.sun.faces.context.FacesContextImpl.assertNotReleased(FacesContextImpl.java:382)
    at com.sun.faces.context.FacesContextImpl.getExternalContext(FacesContextImpl.java:110)
    at oracle.adfinternal.view.faces.context.AdfFacesPhaseListener._releaseContextIfNecessary(AdfFacesPhaseListener.
    java:129)
    at oracle.adfinternal.view.faces.context.AdfFacesPhaseListener.afterPhase(AdfFacesPhaseListener.java:60)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:211)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:356)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:325)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:190)
    at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at com.abnamro.crd.admin.PortalFilter.doFilter(PortalFilter.java:113)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:534)

    Hi!
    Unfortunally your suggestion didn't work. I did however discover that the exception is only thrown if one uses ADF faces components. There is no error message if reference implementation components are used (even if using the ADF faces renderer class).
    Anyway, this is what I trie:
    I first did a a regular faces responseComplete() call, as I figured that could be the missing action, but again I got the same exception:
    java.lang.IllegalStateException
         com.sun.faces.context.FacesContextImpl.assertNotReleased(FacesContextImpl.java:382)
         com.sun.faces.context.FacesContextImpl.getExternalContext(FacesContextImpl.java:110)
         oracle.adfinternal.view.faces.context.AdfFacesPhaseListener._releaseContextIfNecessary(AdfFacesPhaseListener.java:129)
         oracle.adfinternal.view.faces.context.AdfFacesPhaseListener.afterPhase(AdfFacesPhaseListener.java:60)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:211)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:356)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:325)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:190)
         oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         com.abnamro.crd.admin.PortalFilter.doFilter(PortalFilter.java:113)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
    Then later I tried this actually calling the faces "sendRedirect" function shown below (that is: prior to calling the logoff() code), but again I got the same Oracle exception (see above).
    // helper method: redirect to some URL (which may be either absolute or relative)
    public synchronized static void redirect(String url)
    ExternalContext external = getExternalContext();
    if (external == null)
    return;
    try {
    external.redirect(url);
    catch (Exception e)
    e.printStackTrace();
    responseComplete();
    So... unfortunally I did still not get much further...
    Regards,
    Falco

  • UWL Login/Logout problem

    Hi
    Our portal platform is running on EP 7.0/ SP11.  we are using UWL in our portal.
    The problem we are facing now was:
    When user logins into the portal there are no tasks displaying  in the UWL. (we are getting waiting for update, after that No items displayed messages).
    User logoff from the portal and again login the portal, then uwl shows list of Tasks assigned to that user.
    Is anyboday face similar issue?
    Thanks
    Prasad

    Same problem here.
    Have already set the "Delta Pull Channel Snapshot Refresh Period" to "-1".  From the documentation, this is so that everytime the user logs in, the UWL is refreshed immediately.  Apparently this is not so.  The bahaviour is as such.
    Say for leave work item
    - Approver go in and approves the leave and logs off immediately.
    - Approver logs in the second time and still see the same work item.  The work item is still seen even after log in the next day.  Logs off immediately.
    - Approver logs in the third time and now the UWL list is updated.
    The settings to "-1" does not seem to work.  It seems like on the second login, the portal cache is updated but the UWL is not updated immediately.  It will only be updated after a delay or subsequent log in.
    Any solutions? Am checking here first before logging an OSS.
    Cheers.
    Tan Meng Mau.

Maybe you are looking for