Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 27th, 2006, 04:15 PM
vunet.us@gmail.com
Guest
 
Posts: n/a
Default 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

  #2  
Old December 28th, 2006, 01:15 AM
Kyle Peterson
Guest
 
Posts: n/a
Default 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.googlegro ups.com...
Quote:
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
>

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles