mattmcb Posted September 29, 2004 Share Posted September 29, 2004 Does anyone know what tells the login page to send the user to the index after they have submitted the correct email address and password? I can't find a re-direct and I am unsure on how that page works. There doesn't seem to be anything in that file to reference the index. I am boogled... any help would be great. Quote Link to comment Share on other sites More sharing options...
Guest Posted September 29, 2004 Share Posted September 29, 2004 what is it you are trying to get accomplished? Quote Link to comment Share on other sites More sharing options...
mattmcb Posted September 30, 2004 Author Share Posted September 30, 2004 Basically I want to use the login to direct to a seperate members page. I found this code, but it isn't working... it seems to ingnore it: if (sizeof($navigation->snapshot) > 0) { $origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']); $navigation->clear_snapshot(); tep_redirect($origin_href); } else { tep_redirect(tep_href_link('main.php')); } Quote Link to comment Share on other sites More sharing options...
AfterDark Posted September 30, 2004 Share Posted September 30, 2004 wrap an if statement around it so that if the session is registered they go to the different "page". On my site we used 2 versions of define mainpage.php - one for guest and one for members - saved some headache bypasing index.php. HTH Quote Link to comment Share on other sites More sharing options...
mattmcb Posted September 30, 2004 Author Share Posted September 30, 2004 Can you send me an example of the code? I'm not that familiar with OSC sessions yet. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.