<snip> What if you use something like SourceForge. If you try to access a page the requires you to be logged in when it redirects you to the login page it includes in the URL the page that the user tried to access (ie login.php?redirect=page3.php) Then when the user successfully logs in they redirect to the page. If it's not set the go to page1.php. </snip>
just grab the $_SERVER['REQUEST_URI'] when they try to access a page that they need to be logged in to see. Save it in a session variable or include it in a redirect get variable and redirect them to the login page. Once they have looged in grab the session variable or the get variable and redirect them to the proper place. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php