472,345 Members | 1,521 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,345 software developers and data experts.

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

Dec 27 '06 #1
1 2710
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
<vu******@gmail.comwrote in message
news:11**********************@73g2000cwn.googlegro ups.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

Dec 28 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Simon | last post by:
Hi, I have a Login.php page that logs the user in and out. I has two forms within the page, (depending on what we are trying to do), either one...
6
by: Tim Stokes | last post by:
Hi all, I want to do a similar action to response.redirect ("file.htm"). But the file.htm contains some sensitive data. I have placed file.htm in...
1
by: shank | last post by:
I have a few pages that require login to access. Assuming a user clicks a link containing a variable trying to access a password protected page....
1
by: Danny | last post by:
Hi there, I was wondering if anyone would be able to shed some light on the following behaviour for me. I have an application that is using...
1
by: Grey | last post by:
I have set the following parameters in web.config to prevent user direct access the web page without user login. <authentication mode="Forms">...
1
by: Sospeter | last post by:
Hi Ken, I have done that but still experiencing same problem. Tried the following i.e. turning smartnavigation = false and using server.transfer...
10
by: GreggTB | last post by:
I've got an page (LOGIN.ASPX) that receives the user's login information. During the page load, it checks the credentials against a database and,...
3
by: William Sullivan | last post by:
Have a frameset HTML page (parent) with child .aspx pages. When each of the child pages loads, it checks to see if the user is authenticated, and...
4
by: DGS | last post by:
Hi guys, Not a developer, but an admin so please pardon my ignorance. I have an issue that I was hoping to get help with. What I need is for...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.