Problem in how to stop displaying previous page after Logout

<%
// I invalidate all my session when i logout and comes on Login.jsp page but if i go back still it open
previous pages
How i can stop these
i am adding these line in avery jsp page
1)
response.setHeader("pragma","no-cache");
response.setHeader("Cache-Control","no-cache");
response.setHeader("Cache-Control","no-store");
response.addDateHeader("Expires", 0);
response.setDateHeader("max-age", 0);
response.setIntHeader ("Expires", -1); //prevents caching at the proxy server
response.addHeader("cache-Control", "private"); //IE5.x only;
%>
2) and in Logout.jsp
response.sendRedirect("Login.jsp");
session.invalidate();
session.removeAttribute("viv");
still on reaching login page i can move to previous page by clicking back button

Hi sreenathreddy.
I am doing exactly what you are talking about.
On load of each jsp page, I check to see if I am still in session. If i am not, i redirect the user to the login page saying his session has expired.. This works perfectly fine in the sense that after I log out, if I directly type in the url or click on any other link from history, it redirects you to the login page.
But my problem sitll remained that after logging out, if i clicked the back button, it would still take me to the previous page even though none of the links on that page would work.
So i added all the response.SetHeaders that are mentioned in this discussion.
Now the scenario is such that, when i press the back button after logging out, it tells me that the page has expired and i have to resubmit the form.
There are two problems with this
1. at this point , if i refresh my page, it still gets the details from the server and even though i am invalidating the session and all the user details, and checking to see if the session is invalidated,it still somehow manages to get all the details(i dont know where that info is stored)
2. even if the person has not logged out. ie in the middle of a perfectly valid session and clicks on the back button, he is warned that the session has expired.
please do reply
thanks
ritesh

Similar Messages

  • How to stop the spinning  ball after trying to install 10.7.3?How

    How to stop the spinning ball after trying to install V10.7.3?

    Boot from your recovery partition by holding down the key combination command-R at the startup chime. Release the keys when you see a gray screen with a spinning dial.
    When the Recovery desktop appears, reinstall the Mac OS. You don't need to erase the boot volume, and you won't need your backup unless something goes wrong. If your Mac didn’t ship with Lion, you’ll need the Apple ID and password you used to upgrade, so make a note of those before you begin.

  • How to redirect a JSP page after the session is killed

    Hello!
    I am quite new to JSP. I have a question about how to redirect a jsp page after the session is killed. Could anyone help?
    thanks a lot in advance!

    You can't, directly. There's no connection betweenthe server and browser.
    even after invalidating the session. we can do it
    directly using the statement
    response.sendRedirect("....");
    or we can use the meta refresh tag.if session is invalidated and if we try to do response.sendRedirect(".. ") it throws IllegalStateException

  • How to stop a while loop after certain time using Elapsed time vi

    how to stop a while loop after certain time using Elapsed time vi.

    Hi Frankie,
    Just place the Elapsed Time VI inside the WHILE loop, and wire the 'Time Has Elapsed' output to the conditional terminal in the lower right corner (which should be set to 'stop if true' by default).
    In the future, please post your LabVIEW questions to the LabVIEW Forum.  You have a much better chance of getting your questions answered sooner, and those answers can then help others who are searching the LabVIEW forums.  Thanks!
    Justin M
    National Instruments

  • My firefox has suddenly stopped displaying web pages only instead the full HTLM

    My Foxfire 3.6.13 stopped displaying webpages in full HTML and now only displaying them in text. Like for instance, my homepage is set for www.earthlink.com, but instead displaying as a full HTML, Firefox displays as TEXT page. I don't doing anything my Firefox settings to change this; so what do I do to get it back?

    The screenshot didn't attach.
    Use a compressed image type like PNG or JPG to save the screenshot and make sure that you do not exceed the maximum file size (1 MB).
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]

  • Problems conncecting my 20" cinema display (Previous Version) to a PC

    Problem description:
    Originally, a 23" cinema display (Previous version as well) was connected to my PC via DVI to ADC adapter. This morning, I tried to connect the 20"(Previous Version) to the same PC, it wouldn't power itself up~~~ After turned the PC off, and switched back to the 23", I turned on the PC, everything worked just fine again. While everything was still up and running, I unconnected the 23", and hooked the 20" into the adapter, now the 20" started to work.
    This is a really weird problem to have and PLEASE PLEASE help me with this. Thank you guys SO SO SO much!

    I'm using a FX5500 low profile PCI card installed in the docking station for my IBM T23.
    This is just weird~ 23" works fine but not the 20"……

  • Displaying previous page without running it's report region sql?

    Hi, I just created a button which is PREVIOUS and redirects to the previous URL. However I was hoping I could just display the previous pages report results again without re-running the report sql.
    The PREVIOUS button seems to re-run the sql ... is there any way of just caching the previous pages sql results and then they are instantly displayed from the next page by pressing the PREVIOUS button?
    Thanks

    Scott, this command works great. If you dont submit the current page it is fine. Is there a way to branch back to the previous page disregarding the current pages submissions as if you submit the current page then the command will only branch back to the same page but before it was submitted?
    Thanks

  • How to go to previous page in task flow using 'BACK' button in the browser?

    Hi...
    I have created system using ADF application that can detect 'BACK' button in the browser(e.g. firefox and google chrome).Everytime i click the 'BACK' button in the browser,it will prompt out message that ask user whether want to 'stay in the current page' or 'leave the page'. Once i click 'leave the page' it will take me to the login page.
    Is there any possibility for go back to previous page in task flow when user click on browser's back button? By the way, the task flow is in the page fragment.
    can anyone tell me how to do it?Need this step urgently..
    Thanks in advance.
    Edited by: 942376 on Jun 22, 2012 11:03 PM
    Edited by: 942376 on Jun 22, 2012 11:07 PM

    Can you send that code to have a look ? Share it on some site

  • How to get to previous page on iPad?

    Can anyone tell me how to reurn to the previous page on the iPad 2?  If I use the back arrow, it usually takes me back to a previously viewed website. Also, is there any way to store favorite websites? Thanks.

    The Previous page is kind of vague, and may depend on how the website is made.
    The Back arrow in Safari will take you to the last visited address.  Wether that's your last page is not certain.
    Some websites do not have physical page changes so nothing to go back to. They change the content of the same page.
    To store favorites or Bookmarks, tap on the twisted arrow icon that's on the left side of the address bar. Then tap on Bookmark.
    When you want to access the favorites, tap on the little book icon to the left of the twisted arrow, and tap on the bookmarks tab if its not selected and then tap on the link you want to open.

  • How to return to previous pages without going back one at a time

    I do a lot of work on ebay and have to return to previous searches or pages and I used to be able to have a button that would show all the previous pages and I could go down the list and click on it. The only option I have now is to go into history and it only shows recent pages and it's for ALL the tabs open. I want just the tab for ebay previous pages. For instance if I go to ebay sold and relist an item it takes me through the prompts and if I want to return to ebay sold I want a drop down showing that option. I no longer see one. This normally wouldn't be too much of an issue except that the ebay sold is on ebay.com and relist is on ebay.ca so I like to go back to the previous page instead of going to bookmarks, ebay, my ebay, sold etc to get there again. Too much work!!! thanks, Iris

    Try this script that Yvan Koenig has written. Help text is both in english and french
    https://www.box.com/s/00qnssoyeq2xvc22ra4k/1/129506087/5871856782/1

  • How to go to previous pages using AT LINE-SELECTION

    Using AT LINE-SELECTION we can move on to next page up to 20 pages.
    Is it possible to go navigate to the previous pages?
    Letu2019s say, now I am in 15th page. I have to go to 5th page from 15th.
    Any comments appreciated.

    Hi,
    set your list index = 5 when u reach list 15.
    case:
    when Sy-lsind = 15.
       sy-lsind = 5.
    thanks,

  • Return to same record on previous page after using form

    Hi,
    I have an application that contains a table with tasks and subtasks (which are linked to a task), and for every task, there is a 'add subtask' link, which links to a form where I can create new subtasks for that task.
    My problem is that when I have created a new subtask, and return to the previous page (with the overview of tasks and their subtasks) automatically by clicking the 'create'-button, that the report starts again at line 1. I would like it to go back to the same task for which I just added a subtask.
    In my search for the answer, I came across these two discussions on this forum:
    Re: navigate to previous record
    after edit, return to the table where the record is at the same position
    I tried to implement the solution they came up with in those discussions, but it didn't work for me.
    The reason of this might be:
    - It are old discussions, maybe some things have changed
    - I use a standard report with custom template, they do not
    - My link is on a field that has the same value for all records, being just a text item 'Add subtask', in the other discussions they made the link on an actual DB-field, in my case this would be for example task_id.
    When I try to implement the solution on the second forum exactly (well, not exactly, I did of course adapt this to my situation), there is one step which doesn't work for me. It's the very last step:
    "With these values: #LINK_&P2_EMPNO."
    When I put the # in there, the button deletes all the information about the link when I click 'Apply changes'. When I don't use the # (just LINK_&P2_EMPNO.) he doesn't delete the information, but the link to the same record doesn't work.
    This is how I implemented it:
    Source page (overview of tasks and subtasks):
    Link attributes: LINK_#TASK_ID#
    Target: Page in this application     Page: 4 (form)
    Item 1: Name: P4_TASK_ID, Value: #TASK_ID#
    Item 2 (not important for returning to the source page): Name: P4_YEAR, Value: #YEAR#
    Item 3 (not important for returning to the source page): Name: P4_TEAM, Value: #TEAM#
    Target (form):
    Action when button clicked: Redirect to page in this application
    Page: 3 (source page)
    With these values: LINK_&P4_TASK_ID.
    It doesn't return to the correct record, but the task_id is included in the link as follows (when I tried to create a new subtask for task 02.01.08 and returned to the source page) f?p=37080:3:5503066190863::NO:::LINK_02.01.08 which is almost the same as they say in the discussion: f?p=&APP_ID.:1:&SESSION.::&DEBUG.:2::#LINK_&P2_EMPNO. (missing the '#'-sign and 1 less ':' before the link-item though).
    Why isn't it working for me? How can I solve the problem?
    Could I get some help with this please? It would be a very useful functionality in my application as there are a lot of records.
    Thank you.
    Kind regards,
    NDG

    I'm new on Jdev, I'm Pl/sql developer learning Jdev ....
    I need to do this on the Task Flow Right? can you give me some stesp to follow?
    thank you

  • How to stop tabs re-opening after firefox crashes.........when it crashes and I have multiple tabs open, when re-starting firefox all of the tabs re-open too. How can I stop this?

    Firefox crashes quite often, especially when I have multi tabs open. I usually have to use CTRL ALT DEL and end the process as Firefox stops responding.
    My problem is not the crashing........it is the re-opening of the multiple tabs I had open, when normally it is one of them (not the home page) that caused the crash in the first place, so I cannot re-open firefox until I restart the pc, because every time I do it is the same story. Firefox tries to re-open all of the tabs and stops responding. I have looked in options but nowhere does it allow me to stop multiple tabs opening after a crash. If this continues, I will have to uninstall Firefox and stick to Chrome.

    Set the pref browser.sessionstore.max_resumed_crashes to 0 on the about:config page to get the about:sessionrestore page immediately with the first restart after a crash has occurred or the Task Manager was used to close Firefox.
    *http://kb.mozillazine.org/browser.sessionstore.max_resumed_crashes
    That will allow you to deselect the tab(s) that you do not want to reopen, but will allow to reopen other tabs.
    See:
    * http://kb.mozillazine.org/Session_Restore#Restoring_a_session_after_a_crash
    * http://kb.mozillazine.org/Browser.sessionstore.max_resumed_crashes
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default or changed via the right-click context menu.

  • New page unexpectedly loses ability to go BACK to previous page after clicking on a link in page (not consistent), why?

    Firefox 4.0 Vista 32 bit
    I will have a tab open, and click on a link, new page loads. The Back and Forward buttons do not work. Usually it shows in history (unless I opened too many pages before clicking on link). This has happened several times.
    It is not consistent - one time I used search bar and opened a Yahoo search page - clicked on search link and when I wanted to go back to look at another search link from the previous page- page would not load (BACK button dead). I clinked search again, clicked on another link and that time it allowed me to return to the previous page???
    I am about ready to go back to previous version.
    Thank you.

    It's a good idea to try disabling Flash completely and see whether the problem continues. If it does, then my guess is incorrect. To test that, open this tab:
    orange Firefox button (or Tools menu) > Add-ons > Plugins category
    Here you can locate Shockwave Flash and use the Disable button. Keep this tab open for easy access when doing your test.
    ''If your test confirms that Flash is causing the problem,'' then the other thread has two suggested workarounds. The first is simple to understand (keep some Flash running at all times) but may be inconvenient to do all the time. The second is trickier because it requires editing a file in (or creating and then dragging a file into) a system folder. Fortunately you only need to do it once.

  • Safari reloading previous page after pressing the back button

    Hey guys, here my question regarding Safari...
    Why is it that every time I do the two finger swipe on the trackpad to go back to the previous page I was viewing on the web, freaking Safari takes me back to that page instantly but then automatically reloads the page. WHY?!?!
    I don't have this issue while using Firefox. I swipe to go back to the previous page and it's instantly available for me to continue browzing / scrolling, etc.
    Another thing I noticed in Safari is that if I'm half way down a page and click on something, which takes me to that page but then I swipe to go back, it doesn't take me back to where I was on the page (say, half way down, for example) it take me up towards the top (not all the way at the top, mind you, just up higher, NOT WHERE I WAS WHEN I LEFT THE PAGE) Why does it do this?!?! You'd think that Apple would have designed Safari to be the next best thing since sliced bread and that it would work instantly and flawlessly. I'd imagine that Firefox and other browzers would be the ones taking forever to load but it's freakin Safari that is doing this, I don't get it.
    For the record, Firefox functions flawlessly. Instantly shows the page I was at when I press the back button or swipe back and it puts me BACK IN THE SAME SPOT THAT I WAS AT BEFORE I LEFT THE PAGE!!!!
    I use both browzers as I need two (use both for different things and have different bookmarks saved, etc) but I'm starting to HATE Safari simply for this one issue I'm having. It makes surfing the web take 2x as long as I not only have to wait for the page to RELOAD after pressing the back button, I also have to scroll back down to where I was before I left the page, which takes TIME!
    Someone please explain this to me. I looked at other posts regarding this issue but there is no clear solution to the problem.
    HELP.

    I think Apple should give the end user the choice whether to autoload the webpage when you press the back button or not. It would be a simple fix for this issue that it seems a lot of people are suffering with.
    I WANT to use the default web browser that my Macbook Pro came with (Safari) and don't really want to use the alternatives (Firefox, Chrome, etc) but surfing the web is a slow, time consuming process with this auto reload "feature".
    Apple, Please fix this ASAP!
    This is my first Apple laptop (was a long time Sony Vaio / Windows user) and I expected good things from my Mac, after hearing / reading all the reviews but this Safari issue is a MAJOR turn off for me. It needs to be address ASAP.

Maybe you are looking for

  • I lost my itunes media folder how can I export the photos from my ipad to another location

    I lost my itunes media folder and also my iPhoto files. I have the majority of the photos from iPhoto library on my iPad. How can I get them from my iPad to another location. Like exporting them to a folder on an external drive.Is this possible. I kn

  • A good project management app?

    I'm working on a large project (a book) and am looking for something to keep my deadlines together and to break my work into manageable chunks. I know there are a lot of good programs like OmniPlan, but I just need to plan out my own project-I'm not

  • After restoring BIOS from USB still HP BIOS Utility starts

    Hi guys, after a BIOS update my HP Pavilion 15-e026sl not boot anymore, it does the following scheme: I press the power button Power, Bloc Maiusc and wifi lights and fan on but dark screen 2/3 seconds and everything shut down The pc automatically reb

  • Create a Webi report using QAAWS as a data source

    Hi Experts, I am on BO 4.1 SP 3, and using the Webi Rich Client to create a WEBi report using a QAAWS url as a data soruce. This is the first time I am trying this, so any tips/helpful links are welcome. I get the below error, when I try to map the f

  • OSX 10.5 and Safari 3.1 double submits

    Hi All. I have a flex 2.01 app deployed, part this app is a form submit button. On OSX 10.5 leopard and running latest Safari 3.1 the button submits twice. The button functions fine under Firefox, or any browser under 10.4.11 Jaguar. Flash player 9,0