Invalidating a Session help

When a user logs out the following servlet is called. The problem is that when the back button is hit they can get back in without signing in again. User authentication is done with a bean with Session scope. Does the invalidate() not destroy the bean as well?
import java.io.*;
import javax.servlet.ServletException;
import javax.servlet.http.*;
public class LogOutServlet extends HttpServlet
     protected void doGet(HttpServletRequest request,
     HttpServletResponse response) throws ServletException, IOException {
     HttpSession hs;
     hs=request.getSession();
     hs.invalidate();
     response.sendRedirect("../index.jsp");
help me OB1, you're my only hope.
Thanks
C.

Well, you don't clear the cache, you prevent pages from being cached.
Look at this thread: http://forum.java.sun.com/thread.jsp?forum=45&thread=562372 which states clearly how to do it. Note, you would have to add the response.setHeaders on top of every page that you don't want cached.

Similar Messages

  • ECC-- SAP PI-- Successfactor Integration: Invalid SFAPI session

    Hello Experts,
       I am working on  EmployeeData Synchronization interface the content of which is predelivered from SAP.
    I configured the interface and while testing
    as first step I was able to retrieve the session ID from Successfactor,
    but using the session ID retrieved from Successfactor cloud application when I am trying to upsert data in the second step  I am getting an error "Invalid SFAPI session".
    How can I overcome this error?
    I have done my research on the SDN and went through the blogs but for not much use.
    I am sure about the content and the version being used by me as the correct one.
    Has anybody seen this error and if yes how did you overcome the same?
    Please let me know.
    One point that I have to make is that since I was able to retrieve the session ID I did not install the certificates from Successfactors.
    Is installing the certificates mandatory and if yes which step is this being referred?
    Any help is really appreciated.
    Anu Patyath

    First of all, you should get it running with SOAP UI:
    Please make sure, you got those steps right behind each other:
    login
    upsert
    logout
    The important step is to set "Main HTTP session":
    You can use the payloads for login, upsert and logout as they are generated by SOAP UI when importing the WSDL.
    e.g. upsert:
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:sfobject.sfapi.successfactors.com">
       <soap:Header/>
       <soap:Body>
          <urn:upsert>
           <urn:type>User</urn:type>
           <!--1 or more repetitions:-->
           <urn:sfobject>
           <urn:upsert>
           <urn:type>User</urn:type>
           <!--1 or more repetitions:-->
           <urn:sfobject>
                <urn:type>User</urn:type>
                <urn:type>User</urn:type>
                <urn:status>active</urn:status>
                <urn:externalId>testuser</urn:externalId>
                <urn:username>testuser</urn:username>
           </urn:sfobject>
         <urn:processingParam>
              <urn:name>sendWelcomeMail</urn:name>
              <urn:value>true</urn:value>
         </urn:processingParam>
         </urn:upsert>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

  • Invalid Kiosk session configuration...

    Guys,
    I have a Solaris-based SRSS 4.2 installation. I have Global Kiosk set to connect to VMware View server (and it works fine).
    I have certain people that need to connect to their Linux desktops. So I created another Kiosk configuration using the Kiosk Mode Generic Session (http://wiki.sun-rays.org/index.php/SRSS_Addon:_Kiosk_Mode_Generic_Session)
    My generic.conf looks like this:
    KIOSK_SESSION_EXEC=$KIOSK_SESSION_DIR/generic-session
    KIOSK_SESSION_LABEL="SGD"
    KIOSK_SESSION_DESCRIPTION="Provides an SGD X session for running a Kiosk script."
    KIOSK_SESSION_ARGS="/usr/bin/firefox http://sgdserver/sgd"
    KIOSK_SESSION_PROTOTYPE=generic-session
    I have then ran these commands to import the configuration and assign it to certain users:
    # utkiosk -i SGD -f generic.conf
    # utkiosk –l
    SGD
    session
    Now assign the SGD configuration to users’ token:
    # utkioskoverride -r Payflex.xxxxxxx -s kiosk -c SGD
    Here’s the kick… If I set Global Kiosk to SGD, it works fine and brings up SGD login page as it is supposed to.
    If I set Global Kiosk back to View and try to use a smartcard to bring up SGD for the particular user, I get:
    Login Incorrect, please try again
    then an error stating:
    Error starting Kiosk session: Invalid Kiosk session configuration
    In the logs I see this:
    kiosk:initsession[14382]: [ID 702911 user.error] Error: $KIOSK_SESSION not specified
    Jan 12 15:30:55 dsys-vfrb-sray1 kiosk:initsession[14383]: [ID 702911 user.error] Error: failed to load Session Descriptor
    Jan 12 15:30:55 dsys-vfrb-sray1 dtlogin[14250]: [ID 705508 user.error] pam_kiosk: pam_sm_open_session: Child process /opt/SUNWkio/lib/initsession failed with exit code 1.
    Any ideas? It works fine in my Lab, but at a customer site, it does not work!
    Thank you in advance for your help!

    Vitaly91 wrote:
    I have a Solaris-based SRSS 4.2 installation. I have Global Kiosk set to connect to VMware View server (and it works fine).
    I created another Kiosk configuration using the Kiosk Mode Generic Session (http://wiki.sun-rays.org/index.php/SRSS_Addon:_Kiosk_Mode_Generic_Session)
    My generic.conf looks like this:
    KIOSK_SESSION_EXEC=$KIOSK_SESSION_DIR/generic-session
    KIOSK_SESSION_LABEL="SGD"
    KIOSK_SESSION_DESCRIPTION="Provides an SGD X session for running a Kiosk script."
    KIOSK_SESSION_ARGS="/usr/bin/firefox http://sgdserver/sgd"
    KIOSK_SESSION_PROTOTYPE=generic-session
    I have then ran these commands to import the configuration and assign it to certain users:
    # utkiosk -i SGD -f generic.confUnfortunately Kiosk has two kinds of *.conf files: session descriptors (see the kiosk(5) man page) and session configurations (see the session.conf(4) man page). And these types are rather similar - some settings can be in the descriptor as default, but also in the session configuration. The generic.conf you have is a session descriptor. Those must be stored into /etc/opt/SUNWkio/sessions/. But for import into utkiosk you need a session configuration. Probably utkiosk should do more validation of the configuration you are importing to protect against this confusion.
    The generic session is intended for configuring any command to be executed from the admin UI. If you know your command and need a prototype, you should go the extra step and make a specific session. Here is how:
    Rename your file to /etc/opt/SUNWkio/sessions/SGD.conf and change it to be:
    KIOSK_SESSION_EXEC=/usr/bin/firefox
    KIOSK_SESSION_LABEL=SGD
    KIOSK_SESSION_DESCRIPTION=Provides an SGD X session for running a Kiosk script.
    KIOSK_SESSION_PROTOTYPE=SGDAlso rename your /etc/opt/SUNWkio/prototypes/generic-session directory to /etc/opt/SUNWkio/prototypes/SGD, as per the last line above.
    You can leave the KIOSK_SESSIONS_ARGS line in the file, if you wish, but it will just be a default, so I'll show how to set the arguments via utkiosk.
    To verify that you have set up the descriptor correctly, use
    /opt/SUNWkio/bin/kioskdesc print SGD Now create your session configuration:
    # utkiosk -i SGD <<!
    KIOSK_SESSION=SGD
    KIOSK_SESSION_ARGS=http://sgdserver/sgd
    ! Of course you can also put these two lines into a file and use it with the -f argument to utkiosk.

  • IMAQdx: Invalid camera session

    I want to use GigE camera on LabVIEW2011.
    I have already installed Vision Acquisition software (ver Aug 2012) and got image on NI MAX.
    But on LabVIEW2011, I could not get image. Error was occured as follows.
    Error code 1074360315 was occured
    on IMAQdx Get Image.vi
    NI-IMAQdx: (HEX 0xBFF69004) Invalid camera session
    Please help me.

    Hi wmaker,
    For your information, this is japanese discussion forum, it might be useful for you to use English boards like here;
     Machine Vision Board.
    http://forums.ni.com/t5/Machine-Vision/bd-p/200

  • Possible reasons for error 1074396005 invalid avi session

    Dear All,
    I am working on creating and writing frames on to AVI files. I need to start writing frames up on record on command and close the AVI file up on record stop command. I am trying to read frames from an recorded video and write in to another AVI file.
    But i am observing Error 1074396005 invalid avi session, whenever i run the code. I am using AVI2 VI's (IMAQ AVI2 Create, AVI2 Write and AVI2 close).
    I am using LabVIEW 2013 SP1 and Vision development module versions.
    Below is the block diagram for reading an avi file and writing in to avi file upon record on command (numeric control value 1 to case selector) 
    Block diagram for record off
    Below is the error observed:
    Kindly suggest what would be the possible reason for the error.
    With regards,
    Sri
    Attachments:
    Block diagram1.PNG ‏59 KB
    avi2 error2.png ‏381 KB
    Block diagram2.PNG ‏20 KB

    Might be good if you can post the code instead of screenshots.
    -If session was closed or aborted due to some reason you should get this error.
    -Multiple times you are creating the session inside the loop with same avi session, is it required?
    -Are the images added to the avi file?
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13

  • I am using an iphone 3g and when i connect my device to my laptop a dialog box appears saying that an update of 4.2 is available so went for it.after the firmware is downloaded via itunes it shows that the firmware is invalid!.please help.

    HEY GUYS I AM USING AN IPHONE  3g and when i connect my device to my laptop a dialog box appears saying that an update of 4.2 is available so went for it.after the firmware is downloaded via itunes it shows that the firmware is invalid!.please help.
    AND ALSO I HAVE HEARD THAT THE IPHONE 3G CANNOT BE UPDATED TO IOS 4.2!IS IT TRUE???
    PLEASE HELP ME.

    This means that the phone you have was software unlocked to use on any carrier, or hacked. When you installed the update it restored the lock that originaly came with your phone. Not much you can do now. Apple will not support hacked phones. You will need to find out the carrier your phone is locked to and see if they offer official unlocking, or start googling to see if you can find a way to unlock 4.2.

  • How can we cleanup invalidated archive sessions  (remove from UNIX)

    Over the years, we have accumulated many invalidated archive session files in our archive directory in UNIX.  We would love to remove these invalidated session files to free up space. 
    We have been looking at BC_ARCHIVE ... but the documentation on it only mentions the archive of logs  ... not the cleanup of invalid session files that need to be deleted
    Can we just delete the files of sessions that are invalid?  Or must we perform some function in SAP to delete them?  SAP ... can you document the process for this?

    Hi,
    You can simply delete the archive files at unix level thats all. No need to do anything else in SAP.
    Cheers!
    Samanjay

  • How to find the invalid form session in oracle Apps

    Oracle Apps R12
    Hai All
    How to find the invalid form session in oracle Apps R12 and How to Kill the that.
    Thanks & Regards
    Srikkanth.M

    Hi,
    Please refer to these docs (for 11i and R12).
    How to Kill Inactive Sessions Based on the Information in the Monitor User Form [ID 103516.1]
    Script: How To Identify The apps User Using The O/S PID For Forms Users In 11i [ID 185762.1]
    Thanks,
    Hussein

  • Trying to redeem my digital copy of Star Trek, the movie, and iTunes tells me I've already redeemed it, or the redemption code is invalid. Any help woud be greatly appreciated

    Trying to redeem my digital copy of Star Trek, the movie, and iTunes tells me I've already redeemed it, or the redemption code is invalid. Any help woud be greatly appreciated

    You don't say which film you're struggling to download, I had problems with a-team and I ended up emailing the address on the leaflet, turns out they had a lot of problems  with people's codes,  they then gave me a new code to use! I have now managed to get the film downloaded?

  • Xfce4-session-helper NOT FOUND

    After upgrading xfce4-session the other day,
    [PACMAN] upgraded xfce4-session (4.10.0-6 -> 4.10.0-7)
    These errors appear in syslog:
    Apr 29 13:27:56 arch-top slim[342]: (xfce4-session:397): xfce4-session-WARNING **: Unable to launch "xfce4-settings-helper": Failed to execute child process "xfce4-settings-helper" (No such file or directory)
    Apr 29 13:27:56 arch-top slim[342]: (xfce4-session:397): xfce4-session-WARNING **: Unable to launch "xfce4-settings-helper": Failed to execute child process "xfce4-settings-helper" (No such file or directory)
    They appear twice, together, like above (on startup).

    According to http://www.xfce.org/about/tour (one of the first hits for  xfce4-session-helper), this helper was merged into a settings daemon in 4.10. Either it's a bug or you have some leftover bits from 4.8.

  • Authentication Fault: Invalid User Session Token

    Hi,
    I am trying to protect a call to third party webservices using OWSM and OAM. I followed the steps mentioned in Oracle Web Services Manager
    Deployment Guide to integrate OAM in OWSM, but not able to make any break through. I am getting following error if I test my web service using OWSM's inbuilt test tool:
    <SOAP-ENV:Envelope
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode
    xmlns:p="http://schemas.oblix.com/ws/2003/08/Faults">p:Client.AuthorizationFault</faultcode>
    <faultstring>Authentication Fault: Invalid User Session Token</faultstring>
    null</SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    In gateway.log file, I get following oneliner message:
    security.SimpleXMLCredsExtractor - SimpleXMLCredsExtractor failed to Extract creds.
    I am using standalone OWSM installation.
    Installed OAM SDK on the same machine of OWSM.
    Added OAM SDK libraries into OWSM's path.
    Please advise as I have already wasted 3-4 weeks into it.
    .. Paresh
    Edited by: user10301925 on Sep 29, 2009 2:24 AM
    Edited by: user10301925 on Sep 29, 2009 2:24 AM

    Hi,
    Yes, I have registered the service in OWSM and calling that service through OWSM testing tool only...
    Following is the request message:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    - <soap:Header>
    - <wsse:Security env:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    - <wsse:UsernameToken xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <wsse:Username>owsmuser</wsse:Username>
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">welcome11</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
    </soap:Header>
    - <soap:Body xmlns:ns1="http://service/">
    <ns1:getDateTime />
    </soap:Body>
    </soap:Envelope>
    Please advise.
    .. Paresh

  • After upgrading to iOS8 my Exchange account has changed to an invalid address. I can change it but after a day or two it changes back to the invalid address. any help on this would be great.

    after upgrading to iOS8 my Exchange account has changed to an invalid address. I can change it but after a day or two it changes back to the invalid address. any help on this would be great. Other user on our exchange server that have iOS 7 or lower do not have this problem. All iOS 8 users in our company have this problem

    have you deleted the account and re-added it?  Have you done a reset or restore as outlined in the iPhone user guide?  What troubleshooting have you done?

  • I have just purchased an activation key for iWork but when I enter it it is rejected as invalid. Any help or suggestions please?

    I have just purchased an activation key for iWork but when I enter it it is rejected as invalid. Any help or suggestions please?

    Check the usual suspects, letter O and number zero for example, also letter "ell" and capital i.
    We are however not Apple. Contact their telephone support for wherever you are.
    Peter

  • I updated my ipod the other day and since i have been unable to open any apps that connect to the internet, its says "operation could not be completed. invalid argument". anybody help please?

    i updated my ipod the other day and since i have been unable to open any apps that connect to the internet, its says "operation could not be completed. invalid argument". anybody help please?

    Have yu tried the standard fixes:
    - Reset the iPod:
    Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    Restore the iPod via iTunes,  First from backup and if problems persist, restore to factory defaults/new iPod.

  • Invalid Portal Session

    While browsing through the forums, I got the message below :
    Invalid Portal Session*
    An error was encountered while processing your Portal request, because your portal session is no longer valid. You have been logged out and you will automatically be redirected to the OracleAS Portal home page in 30 seconds. Click OracleAS Portal home page to go directly to the OracleAS Portal home page, or if your browser does not automatically redirect you. If you continue to have problems while accessing OracleAS Portal, close all your browser instances and try again.
    Nicolas.

    user11945767 wrote:
    Hello,
    In our case, I have tried Opera, Safari, Chrome and Mozilla browsers and none of them show 'Invalid Portal Session' error. It only occurs with Microsoft Internet Explorer. And this happens consistently with IE. Not a single time it succeeds unless F5/Refresh is hit.
    What could be the reason for this and how can it be resolved. We are running Oracle 10.1.2 AS.
    Thanks.Nicolas asked the question about the Oracle Forums. Since this is a Forums Community issue, he correctly asked it in the "Community Feedback and Suggestions (Do Not Post Product-Related Questions Here)" Forums area.
    You seem to be asking the question about the Oracle Application Server Portal product. Even though it appears your question and Nicolas' may be related, you are probably asking the question in the wrong area.
    Your question is likely better asked
    1) of Support (by opening a service request) and/or
    2) asking in http://forums.oracle.com/forums/category.jspa?categoryID=193 and/or
    3) asking in http://forums.oracle.com/forums/category.jspa?categoryID=196

Maybe you are looking for

  • Classic Mode Infected with SevenDust

    I need some help here... Classic mode is infected with SevenDust aka 666 virus. I can't boot with Norton Anti Virus because I have a new iBook and need OS 9 for that, which it won't boot into. Should I remove the OS 9 system folder and run Norton fro

  • Does FCE compress HD video?

    I'm working on some projects shot on a Canon HV20. A friend of mine who uses FCP said FCE doesn't compress HD video so it will consume more drive space than it would using FCP. Can anyone shed some light on this? I wasn't successful finding any info

  • Round off API in Java?

    Hi, I have a floating pt. variable that holds Float values like 23.45223 but I need values up to 2 decimal places only i.e. 23.45. Any API to do that ? Thanks

  • DocumentBuilder - getting more information

    Hi, I'm current working on an application which uses the DocumentBuilder class to build a DOM Document from a String representation of the XML document. However, when I run it, I get an exception as follows in the DocumentBuilder.parse method: java.i

  • Why can't i launch a SmartReporter tryout?

    have a macbook pro 13 inch mid-2012 so i d like to test the well-being of HDD by running SmartReporter as my hdd is making a series of clicky "needle scratching gently on the surface of a metal" sounds intermittently therefore i thought i d test it o