How to Redirect User to Originally Viewed Page After Login?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vunet.us@gmail.com

    How to Redirect User to Originally Viewed Page After Login?

    Imagine: user clicks the link which brings him/her to a secure page
    (let's call it page "X") which requires login session.
    If user is not logged in, he/she is redirected to a login page.
    Question: how can I make user get redirected back to that original page
    (names "X") which threw him/her to login form?
    PS: I tried something like getting url name of page X and redirect to
    login with that name variable. After login, it gets redirected back to
    the page that sent variable. But it did not always work. Does anyone
    know of any bullet-proof solutions, though simple ones.
    Thanks

  • Kyle Peterson

    #2
    Re: How to Redirect User to Originally Viewed Page After Login?

    you shouldn't be redirecting anybody anywhere

    try out something like the free version of www.aspprotect.com
    you'll see how the person logging in is always at the same page by looking
    around at the code


    <vunet.us@gmail .comwrote in message
    news:1167236032 .860457.278080@ 73g2000cwn.goog legroups.com...
    Imagine: user clicks the link which brings him/her to a secure page
    (let's call it page "X") which requires login session.
    If user is not logged in, he/she is redirected to a login page.
    Question: how can I make user get redirected back to that original page
    (names "X") which threw him/her to login form?
    PS: I tried something like getting url name of page X and redirect to
    login with that name variable. After login, it gets redirected back to
    the page that sent variable. But it did not always work. Does anyone
    know of any bullet-proof solutions, though simple ones.
    Thanks
    >

    Comment

    Working...