Results 1 to 4 of 4

Thread: Redirect back to previous page after sucessful login.

  1. #1

    Default Redirect back to previous page after sucessful login.

    Hello,

    I have a form that checks if user is "authenticated" when submit button is clicked. If not, they are redirected to the signin page (spring security). When user has been authenticated they are redirected to main page.

    At this point the form data will be submitted automatically along with a message confirm submission.

    I imagine this will involve a session variable. Whats is the best approach?


    Thanks
    Last edited by Laedislaw; Nov 8th, 2012 at 05:02 PM.

  2. #2
    Join Date
    Nov 2012
    Location
    Los Angeles, CA
    Posts
    12

    Default

    Stupid question -- why not use Spring Security to do your bidding.. I believe it handles this sort of thing w/o issue.. It's on my list of things to implement..

  3. #3

    Default

    Quote Originally Posted by webappRound3 View Post
    Stupid question -- why not use Spring Security to do your bidding.. I believe it handles this sort of thing w/o issue.. It's on my list of things to implement..
    If you refering to "always-use-default-target" option in security.xml then it does not seem to work on unprotected resources.

  4. #4
    Join Date
    Nov 2012
    Location
    Los Angeles, CA
    Posts
    12

    Default

    ok.. Just a thought since I didn't notice that you mentioned you were using Spring Security (but now noticed that mention)...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •