Forums
This topic is locked
Login Redirect Problem - ASP/VBscript
Posted 16 Jun 2005 21:12:06
1
has voted
16 Jun 2005 21:12:06 Bari Samad posted:
Hello:I am using the built in login behaviour in Dreamweaver as well as a registration page and it works great if the user is trying to access the site from the main page index.asp. The successful login redirects to index.asp.
The Problem:
This is a database driven site that has a "tell a friend" component which sends a page with URL parameters to a specific asp page. The dynamic asp page traps for login which is fine BUT on successful registration or login the user is sent to index.asp.
They loose the data page they were sent which kinda defeats the purpose huh! They could re-click their link because now the session variable is set but that is assuming too much.
Is there a way to code into the login and registration pages that if the user came from index.asp ... fine send them there but if they came from a link, they should be re-directed there?
Thanks in advance.
Bari
DWMX2004 | ASP | VBSCRIPT | MS-ACCESS