onewaylife Posted February 28, 2007 Share Posted February 28, 2007 Dear all I am creating web site. in that when user is logined i validate the user and after validating the user & pass, i am creating session and redirecting the user to his welcome page like for admin - admin page etc.. my problem is i am using header function for redirecting but the page is remain same. regards onewaylife Quote Link to comment Share on other sites More sharing options...
simcoweb Posted February 28, 2007 Share Posted February 28, 2007 Can you post your code, please. Quote Link to comment Share on other sites More sharing options...
skali Posted February 28, 2007 Share Posted February 28, 2007 header function does not redirect properly if there is some output already sent before redirecting. You also see some errors saying 'headers already sent' or somethign like this. You should try putting: <?php ob_start(); at the top of page before anything else on the page after starting <?php tag. So now all the output will be buffered and you should be able to redirect properly. Quote Link to comment Share on other sites More sharing options...
onewaylife Posted February 28, 2007 Author Share Posted February 28, 2007 Thanks it works 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.