Hi! Check ou this website: THe problem is that when u Click on anyof the links on the left.. Currently only the Equity link..It will check for a cookie in your browser, if cookie is found then It''ll show u the content but if not found it'll redirect to lohin.php page. Before redirecting it will also store a cookie in the browser named camefrom. SO then On the login.php page a user enters username and pasword and Submits.. if user is found then It has to get the Cookie value like this: $goto = $HTTP_COOKIE_VARS['camefrom']; header ("Location: $goto"); but the problem is that it goes back to login.php instead of equity.php Si there any possible reason for this..? Thanx! Cheers!~ Dhaval Desai __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]