monkeybidz Posted November 11, 2007 Share Posted November 11, 2007 I have this code: $URL = str_replace('\r','',str_replace('\n','',$_SESSION["REDIRECT_AFTER_LOGIN"])); unset($_SESSION["REDIRECT_AFTER_LOGIN"]); Header("Location: $URL"); exit; The user is redirected, but session is unset. Example: you are at www.mysite.com/item.php?id=21 just browsing, but when you try to login and be redirected to this same item, you get www.mysite.com/item.php How do I get it to resume old session or not to unset it? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted November 11, 2007 Share Posted November 11, 2007 How do I get it to resume old session or not to unset it? By not calling unset()...? Quote Link to comment Share on other sites More sharing options...
monkeybidz Posted November 11, 2007 Author Share Posted November 11, 2007 I tried removing the unset line and still does the same thing. Quote Link to comment Share on other sites More sharing options...
nuxy Posted November 11, 2007 Share Posted November 11, 2007 Where are you actually getting the Referrer variable? Check if it is not there. 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.