Go back to same page after session expire.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sumit85424
    New Member
    • May 2010
    • 2

    #1

    Go back to same page after session expire.

    Sir,

    i am working on a project
    and my issue is that when i log in a page of my application afer sometime when i click on any item session expires( i know that) but when again i log into it
    it will start from main page.

    But i want to start it from where my session expired...???


    Please reply soon in detail..

    Thanks in advance to all team
    Regards
    Sumit
  • curi444
    New Member
    • Jan 2010
    • 18

    #2
    Originally posted by sumit85424
    Sir,

    i am working on a project
    and my issue is that when i log in a page of my application afer sometime when i click on any item session expires( i know that) but when again i log into it
    it will start from main page.

    But i want to start it from where my session expired...???


    Please reply soon in detail..

    Thanks in advance to all team
    Regards
    Sumit
    which technology is used for this project?

    Comment

    • sumit85424
      New Member
      • May 2010
      • 2

      #3
      Originally posted by curi444
      which technology is used for this project?
      java
      jsp

      Comment

      • ifedi
        New Member
        • Jan 2008
        • 60

        #4
        Originally posted by sumit85424
        java
        jsp
        I know next to nothing about jsp (I code PHP). However, I could offer the following insight:

        Create a field in the database on a row belongin to this logged in user.
        In the code handling log out, trap down the present page address and save it to the database field created above. (This needs to be handled just before the actual destruction of session.)
        In the code handling log in, (after authentication of the user), select the above field from the database, and create a code to redirect to the page, depending on the value previously saved in the database.

        It is, of course, also possible to implement this using cookies stored in the client's computer, with obvious disadvantages.. .
        Best of luck.

        Regards,
        Ifedi.

        Comment

        Working...