Question about redirecting user when session expires

I have several pages that get and post variables sent to
them. Is it possible to retain these values when the user's session
expires? I want to be able to have the user re-log into the system
and then have them redirected back to the page they were just on
and preserver the get and post variables so that the data on the
page can be rendered back to them

is there anyway to manipulate the headers and store the
information there and still have it accessible if the session were
to time out?

Similar Messages

  • Determining when session expires

    I want to be able to track the amount of time that the user spends on my site. I am going to insert a record into a database when the user logs on. I also want to insert a record when the user's session expires either from timing out or closing the browser window or leaving my site. Is it possible to determine when a user's session ends, particularly when it ends via the last two ways.
    Thanks!

    First, you can use a javax.servlet.http.HttpSessionBindingListener object put into the session as an attribute and implement the valueUnbound() method to do the database update. This will be called when you invalidate the session (unless you remove the attribute manually first).
    So the problem is when will the session be invalidated..... There are really 4 things you are looking for:
    1) session times out
    2) user logs out (assuming you provide a log out link that invalidates the session)
    3) browser closes
    4) user leaves site (I assume you mean just goes to some other site in the same browser window)
    1 and 2 are okay, cuz it invalidates the session and calls the valueUnbound method of the object you create as mentioned above.
    For 3 and 4, you can do this in one of 2 ways:
    A) Use frames in your web pages and in the top window, you can have a Javascript call some logout page. However, I'm not convinced that this will work in all situations.
    B) Have an applet in the pages that does something to keep the connection alive. This requires an applet and a JVM in the client to run it. Probably not a good thing to rely on for public sites.
    So really, there is no foolproof or simple way to handle 3 and 4, except to use session timeouts and rely on that.

  • Rdirect to another URL when session expires

    public class sessionManager implements HttpSessionListener {
         public void sessionCreated(HttpSessionEvent se) {
         public void sessionDestroyed(HttpSessionEvent se) {
    In this class for the sessionDestroyed() function i want to write RequestDispatcher .. so that i can redirect or forward my request to another URL so that i can delete my object that r present in ServletContext.
    because for requestDispatcher i need to implement HttpServlet
    which overrides service method ( doGet()/doPost()).which receives HttpServletRequest/HttpServletResponse object ...
    Plz let me know if possible .... the main thing is that i want to go to that particular URL for delting my objects
    any Plz let me know

    And if the session expires because the user closed the browser how are you going to redirect him? You can not use the requestDispatcher in the HttpSessionListener because the session will expire because it doesn' have a request.

  • Answer to question about "Error Occurring when convertion is tried for PDF to Word Document"

    There are about ten questions about the "Error Occurring" when  using Abode Reader XLto convert a PDF to a Word Doc, but no one has the answer? It has something to do with "signing in  the wrong address". I have been working on this three days Now! Soimeone has the answer? Cataloochee

    You must be kidding to say, "Adobe doesn't convert any version of Adobe Reader."'  I must be in another world! When i move an Adobe Reader file pdf that goes to a wIndow that the top line says,'' Adobe reader X1 1001 Early Dutch History. pdf ". Then i click on the far left yellow marked icon that is used to move 1001 Early Dutch History.pdf to thye far right into a gray colored slot that reads "1001 Early Dutch History.pdf'. Under the file above  or down below, the selected File for conversionis, a selection gray slot that ask if you want to convert this file(pdf) to a .docx.,.doc, tex. or Excell. After I make the selection and click onto Convert, a message comes into view where the word convert was that reads "An Error Occurred wilth Signing In  OK" Even the use of another pdf file with a complete different address produces the same message. There are eight chapters in Dutch that I need to convert to word document by tommorrow or the class i teach "the Origin of Golf" will have to listen in Dutch and I can't speak Dutch. Cataloochee

  • Generating error page(in jsp) when session expires....

    hello,
    i want to generate error page(in jsp) when session get expires...
    plz help me out.............

    You could do it according to the line BalusC supplied in another topic:
    <meta http-equiv="refresh" content="<%= session.getMaxInactiveInterval() %>;url=login.jsp">The only thing you gotta change, is the URL, make it:
    <meta http-equiv="refresh" content="<%= session.getMaxInactiveInterval() %>;url=error.jsp">Create 'error.jsp' and have the message 'Session expired, sorry!' or something printed. If you want to use error.jsp for more than just the session expiration, add a parameter to it:
    <meta http-equiv="refresh" content="<%= session.getMaxInactiveInterval() %>;url=error.jsp?error=sessionexpired"> Place the following lines in your error.jsp:
    String errormessage = request.getParameter("error");
    if(errormessage.equals("sessionexpired")){
    out.println("Your session has expired, sorry!");
    }else if(errormessage.equals("whatever")){
    // To do code here.
    }

  • Question about using email when using computer at internet cafe

    I am confused about using email when using my computer at an internet cafe.
    Of course - I use the internet cafe's wifi connection/network.
    How does this effect my email?
    what do I have to do to use my email when logged on at an internet cafe?

    zxcvbnm1 wrote:
    I am confused about using email when using my computer at an internet cafe.
    Of course - I use the internet cafe's wifi connection/network.
    How does this effect my email?
    what do I have to do to use my email when logged on at an internet cafe?
    You don't give enough information to do more than discuss the issue in general terms.  
    You should be able to read your email wherever you can get an internet connection.
    To send email, it depends on the email provider you are using.  Gmail and other web based mail should not have any issues.  However, if you are attempting to use an account that uses your ISP's mail servers, you will probably not be able to send mail.  You may want to check with your ISP in that case, to see if they offer webmail.  
    Hope this may have answered your question.

  • How to forward automatically when session expires ?

    Hi Techies,
    whenever session expires , I want my struts action to forward to logout page automatically.
    I know we can do it by implementing sessionlistener(session destroyed method).
    But how to forward using action mapping .
    any solution is appreciated.
    Thanks,
    shekar

    HI,
    the other method for this is be prepared from the start
    of making of the project make an action class that
    extends
    org.apache.struts.action.Action
    class
    check all such type of thing ie the session and redirect to global forwards
    logout page
    and other required things
    always extend this ur own made action class
    so that it has all functionality of the struts action
    and ur own vlaidation too

  • When-session-expires ?

    hi all,
    i'm trying to find a way to catch when a session expires in oracle database but i don't know how.
    can anyone give suggestions on how i can accomplish this?
    thanks
    allen

    Not sure you can do this and guarantee it, the usual would be to check a column in v$session periodically via a scheduled job , but doesn't PMON kick in and clean it up at intervals, thus making it unsure
    perhaps a logoff trigger to fire ?

  • [SOLVED] Question about systemd-user-session

    Hi!
    I'm trying to setup a systemd --user session (using user-session-units and xorg-launch-helper from aur).
    I have a couple of questions; this is my .xinitrc now:
    #!/bin/bash
    export BROWSER=chromium
    if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
    done
    unset f
    fi
    spacefm --desktop &
    compton -cGCf -m 0.9 -i 0.8 -D 5 --shadow-exclude 'g:e:Conky' &
    volumeicon &
    /home/federico/Script/touchpadoff_onboot.sh &
    #connman-ui-gtk &
    /home/federico/Script/calised-script &
    dimdaemon &
    tint2 -c .config/tint2/dragonauta.tint2rc &
    conky -p 5 -c Script/conky.conf &
    exec openbox
    1) is "if" statement required when using systemd-user-session? And if yes, how can I reproduce it?
    2) "conky -p 5 " will wait 5 seconds doing nothing. Will this mean that other .service will wait for it to finish? (i guess no, since they're executed in parallel).
    3) how can I export "chromium" as my default browser?
    Thank you very much!
    Last edited by nierro (2013-04-06 17:56:17)

    I followed everything in that wiki, and in KaiSforza and sofar github page.
    I finally managed to get my old method (autologin to vt and autostart x) to work together with systemd --user: i put in .xinitrc "systemd --user" and deleted everything else.
    So, my .config/systemd/user/ works. The problem is in the [email protected], i guess. I configured it like wiki says, mind to post here your /etc/systemd/system/[email protected]?
    Thanks.
    EDIT: here it is my [email protected]:
    # This file is part of systemd.
    # systemd is free software; you can redistribute it and/or modify it
    # under the terms of the GNU General Public License as published by
    # the Free Software Foundation; either version 2 of the License, or
    # (at your option) any later version.
    [Unit]
    Description=User Manager for %I
    After=systemd-user-sessions.service
    # This is needed for folks running Xorg on vt/1
    Conflicts=[email protected]
    [Service]
    User=%I
    PAMName=login
    # Note memory:/ required kernel memory CGroups support
    ControlGroup=%R/user/%I/shared cpu:/ memory:/
    ControlGroupModify=yes
    Type=notify
    TTYPath=/dev/tty1
    ExecStart=-/usr/lib/systemd/systemd --user
    Environment=DISPLAY=:0
    Environment=XDG_RUNTIME_DIR=/run/user/%U
    Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/dbus/user_bus_socket
    [Install]
    WantedBy=getty.target
    and loginctl says my user has "1000" as UID.
    Last edited by nierro (2013-04-05 16:13:14)

  • Question about app design - database + session object in JSP

    hi all
    i am studying this application built mostly with servlets and JSPs, and there are several questions i want to ask your guys' opinions about it.
    first of all, i noticed that the application hits database to get/save data very frequently. from one page to another it would save data collected from user to the DB, and retrieve data from DB to display on the next page. it does this a lot. would this decrease the overall performance of the application, i mean a DB hit requires network traffic overhead, wouldn't it be better if all data collected from user are stored in a session object temporarily, and all the data that are displayed on those pages retrieved at the start time? and do one save process in the end. it uses Oracle DB if it makes any difference. should we try to avoid db hit as much as possible?
    my next question is that is it good approach to keep information in session object? even if there is a lot of data to keep?
    another question is the db connection. in a pooled environment - weblogic server, we would use JNDI in the code to get connection from the pool, we use it and close it. when we close a connection with close() method, what really happens? does this connection gets return to the pool or it is being destroyed completely.
    i know this is a lot to ask, i appreciate your help very much. looking forward to seeing some feedback.

    No, I don't have tables of values. I have a java 1.5 enumeration, like for instance:
    public enum VelocityConvention {
       RELATIVISTIC,
       REDSHIFT;
    }and a class Velocity that contains a convention and a value like so:
    public class Velocity {
       public VelocityConvention getConvention() {...}
       public double getValue() {...}
       public void set(VelocityConvention conv, double value) {...}
    }When I persist the Velocity class to the database, I want a field called convention that holds the appropriate value of the enumeration. That much is done how I explained before.
    I want to have a selectOneMenu for setting the convention. Via trial and error, I found that MyFaces wasn't able to automatically convert from a string back to a proper VelocityConvention enum constant. It can, of course, convert from the enum to a string because it just calls toString(). But I need both directions for any UIInput element I use, be it a selectOne, or just a straight inputText.

  • Question about file size when using "Export for Web"

    Hi!
    I created a .mov file and worked to get a great balance between file size and quality so that I could deliver it via the web and make it easier for end users to see the video on a slower connection.
    My question: When I use "Export for Web," my .mov file is converted into a very large .m4v file--more than double the size of the original file. I know that this export option is to optimize the file for a wide variety of users/internet speeds. Am I correct in guessing that the end size is not an issue? I would post the .mov file instead, but I really like the option of embedding into a html page along with the "click to play" option.
    Bottom line--is it better to post the smaller .mov file that i originally started with or to go ahead and link to the bigger .m4v file that was created with the "Export for Web" option?

    "Export for Web" is a feature of QuickTime Pro and it makes 4 files and the html page code for easy copy/paste Web page editing.
    The very first file is called a "reference movie" and it links to the other 3 files (56kbps, 900kbps and 1.5Mbps). It, and the page code, "read" the connection speed of the viewing hardware and "serve up" the correct file based on that connection speed.
    In nearly all cases the "Desktop" version would still be smaller in file size than the original source. The times the file would "increase" in file size would be when an already compressed was used as the source file. You can find out more about your source file by opening it in QuickTime Player and viewing the Movie Inspector window information.
    There are dozens of other html "tricks" that could be used if your source file is already compressed but you want a different display size:
    Page code to show "aspect" or scale="tofit". This code allows values "outside" of those found in the actual QuickTime file be used for the Web page display. A 320X240 QuickTime .mov file looks pretty good at double size (640X480) but the file size would still be that of the source file.
    "Poster Movie" is another html trick that loads the Web based file directly in the QuickTime Player application (bypassing Web page layout restrictions). These files are also known as "Presentation Movies".
    Another method is the QuickTime Media Link file (.qtl). These are simple text based files that are used as a "direct link". These use simple XML (Extensible Markup Language) and are easily created in any text editing application. The simple syntax has amazing control over a simple QuickTime .mov file. You can launch (and quit) the QuickTime Player, display at other dimensions and even embed "links" inside the display.
    Some of my files as examples:
    http://homepage.mac.com/kkirkster/Lemon_Trees/ a "Poster Movie" style.
    http://homepage.mac.com/kkirkster/.Public/RedneckTexasChristmas.qtl
    A QuickTime Media Link file. A tiny file should download to the viewing machine, launch QuickTime Player, present the movie and it even includes a "link" to my Web page.
    Edit: It appears you must now double click the .qtl download to launch QuickTime.

  • Question about security issue when transferring files from PC

    I am in the process of looking at macs. I have always been a PC user and have been EXTREMELY impressed with the features of mac os x. Here's the question. I am probably sure that I have one or more viruses on my PC, what PC doesn't right? When I get my mac, I'm looking at the macbook, I see that I can transfer my files over from a PC to my new mac. The problem is. I want my files, but I'm leery about transferring a virus over also. I've heard about the security of macs and I am wondering if this is something I need to be worried about, or if it won't be a problem. Is there any steps I will need to take to ensure that I don't bring any viruses over with my files? Thanks for the help.
    Micah
    P.S. I am really starting to get sick and tired of Vista. I had to download VLC media player to play my Windows Media files because my Windows Media player on Vista WILL NOT play the files meant for that system. Arrrghhh Sorry for the vent.

    Be sure to scan all your files for viruses before moving them from the PC to the Mac. Although PC viruses should have no effect on a Mac, it's still possible to pass on a virus to a friend via email.
    Do You Need Anti-Virus Protection for Your Mac?
    According to Rich Mogull's article, Should Mac Users Run Antivirus Software?,
    "The reality is that today the Mac platform is relatively safe. There are hundreds of thousands of viruses and other malicious software programs floating around for Windows, but less than 200 are known to target the Mac, and many of those are aimed at versions of the Mac OS prior to Mac OS X (and thus have no effect on a modern Mac).
    It's not that Mac OS X is inherently more secure against viruses than current versions of Windows (although it was clearly more secure than Windows prior to XP SP2); the numerous vulnerabilities reported and patched in recent years are just as exploitable as their Windows equivalents. But most security experts agree that malicious software these days is driven by financial incentives, and it's far more profitable to target the most dominant platform."
    Mr. Mogull is a computer security expert. I recommend reading the entire article as it is quite informative.
    For additional information on viruses, trojans, and spyware visit The XLab FAQs and read the FAQs on viruses and spyware.

  • Questions about forms users once the form is completed

    I am on a Macintosh platform, OX 10.5 (Leopard), using Adobe Acrobat Professional that came with CS3 (version 8 I believe - I am not in front of that computer at the moment). I have creted a few forms in LifeCycle, but now my boss wants this to be completely Mac so Monday I need to start creating them in a Mac. I know the basics of how to create a form from a pdf file.
    Here are my questions:
    1 - Acrobat 8 is so old I can't find any help information in the Adobe help section. Everything that says version 8 takes me to X or XI when I click on the link. Does anyone know where I might find some help with this version?
    2 - How do I create a form that the person using can save with the data, the completed fields, so they can open it again and look at what they filled in?
    3 - As a corrollary to number 2, how can we also get the data?
    4 - We want to take a booklet that has been paper up to now, create a pdf, and then number them to sell for one use only.  Is there any way to make a form one-time-use only, so it can't be passed on to someone else to also complete?
    I appreciate any help I can get. Thank you.

    2. You need to apply the Extended Reader Rights. In version 8 I believe it was under the Advanced menu.
    3. The users can submit the file back to you in various formats, such as PDF (the entire file), FDF, XML, etc.
    You can add a submit button to the file that will help them do that, or they can just do it themselves.
    4. Impossible, unless you use some kind of DRM technology, but those are extremely expensive.

  • A question about tracing users' connections

    Dear all,
    I would like to know, whether there is a report in SAP
    providing information about users connection. What we
    are looking for in terms of information is:
    1) How many times each user connected to the system?
    (for example how many times during each day or each week)
    2) How long each session lasted?
    3) What standard transactions did each user execute during
    each connection?
    Is there any report providing such information?
    Thanks in advance,
    Kind Regards,
    Dariyoosh

    Hi Dariyoosh,
    1) How many times each user connected to the system?
    SM20 (Information security audit logs ) In USER Statistics and Terminal statistics , you can get enough information .
    ST03N
    In ST03N (Workload distirbution monitor ) you can  find ,what is the workload of individual users and which actions users performed ?
    2) How long each session lasted?
    In  tcode - SM20,you can find  detaild activites about users in Users statistics  field . Secondly For transcation details ,Please select Transactions statisitcs field .It
    will  provide  you enough information
    AL08 Shows you Tcodes using by user time ,external & internalsessions  .Also  with tcode  SM04  You can find list of users .There is USER TAB on top left hand side
    You can click on that and select  " Techincal Information , you will get informatoin   STATE , MODES ,MEMORY  COnsumption etc .
    3) What standard transactions did each user execute during
    each connection?
    Pleae use these tcodes :SM20, SM04(users overview) , AL08
    Thanks in advance,
    Kind Regards,

  • IMovie - quick questions about video files when importing and optimizing

    Hi, have some quick questions. I think they are simple.
    1. When I import a video (from say iPhoto), where does it get "Move" or "Copy" to?
    2. Why would I want to do "Copy" instead of "Move", because isn't it then taking up more space?
    3. I'm wondering if after I optimize a video, I can stash away the original (non-optimized video that I either "Move"d or "Copy"d earlier) into an external hd.
    4. By the way, what is the new file name of the optimized video?
    Though things are working fine in iMovie and iPhoto, I'm trying to manage hard disk space, and hope answers to these questions will help.
    Do you guys have a guideline on how to manage hard disk space when it comes to iphoto and imovie?
    Thanks.

    As has been suggested you can encourage people to download QuickTime player by doing something like this...
    http://www.mirroroftheuniverse.com/Songs.html
    You can also present your songs like this...
    http://roddymckay.com/Satellite/JukeBox.html
    This is a SnoCap jukebox and you need an account to use it but you'll get the link to ESnips on the above page.
    A 3 minute song has a file size of about 30 Mb in AIFF format. Converting it to MP3 reduces it to about 3.5 Mb and M4A to about 5.5 Mb.
    iTunes will do these conversions for you and M4A is far superior to MP3 as far as sound quality is concerned.

Maybe you are looking for

  • Desktop wallpaper on external drive not retained after reboot

    Hi all, On rebooting my Late '12 iMac, the desktop wallpaper always reverts back to the default Yosemite one. The wallpaper is stored in a folder on my USB 3.0 ext drive, and when the desktop appears the icon is there for the external drive and ai ca

  • Can't Get the "Compare Word Documents" Automator Action to Work

    I'm trying to build an automator workflow that will use the "Compare Word Documents" action (office 2011) to compare 2 documents.  The expected output would be a new document that shows the changes made between document A and document B, much as if I

  • Total Only in Web Layout

    If I may, I have a nagging question on setting up a layout that contains totals. We have a display only form that contains cost elements with a column for Actuals and a column for Plan so people can do a quick look to compare. The problem is the Plan

  • Idocs created

    Hi all, How is idocs created when there is a change in any one of these fields EAN,Division,Material Type,Material Group,Volume,Product Hierarchy, Gross weight in general data screen or sales data screen. can u tell me wats the ways of creating idocs

  • Export Button doesn't work on Windows 7.

    In Windows 7, I have an application in which the Crystal Report Viewer hangs when exporting reports, however I have developed another application in which everything works fine. Crystal Reports versions are the same, anyone know how to fix this? Than