Trouble with Login Redirect [$_SESSION['PrevUrl']
I'm using the DW functionality to confirm that a user is logged in before allowing access to a page. Everything works except successfully redirecting to the previous URL. Here's the situation:
- User accesses a page with a url such as "addtocookbook.php?recipeid=6".
- Since the user is not logged in, they are redirected to"login.php".
- After successfully logging in, the user is redirected to "addtocookbook.php" without the "recipe=6".
My login page does attempt to direct the user to the previous url (if it exists). I'm not sure if there is a simple way to make the variable $_SESSION['PrevUrl'], used by DW to redirect, store the entire url.
Any help is appreciated.
Elie Chocron
