|
So, here is the scenario. I'm creating an application that requires users to log in. If they are not logged in, I redirect them to the login page, where after they log in, they can access specific pages. For example:
- User tries to access mywebsite.com/app/somepage.php?var1=boo&var2=foo&var3=bar&var4=garpl y
- User is not currently logged in
- User is redirected to the log in page
- User logged in successfully
- User is redirected back to mywebsite.com/app/somepage.php?var1=boo&var2=foo&var3=bar&var4=garpl y
I'm having a problem with the redirection page to the specific page part. If I pass the return address to the log in page and then use the $_GET statement to get the URL, it only gets mywebsite.com/app/somepage.php?var1=boo. The rest of the arguments get chopped off... how do I do something like this correctly?
__________________
Please login or register to view this content. Registration is FREE - The most comprehensive online resource for students and educators.
|