Boo-urns Posted May 6, 2007 Share Posted May 6, 2007 So I have a session that works just great, then i send them to paypal for payment, bring them back and the only way i could think of how to do it was through COOKIES so i set one up before they went to processing. I come back they get logged in fine but at the bottom of the page i get this error. Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. I don't have access to the PHP.ini file so how would i turn it off in the .htaccess page? Thanks in advance Corey Quote Link to comment Share on other sites More sharing options...
btherl Posted May 7, 2007 Share Posted May 7, 2007 Alternatively, you could stop relying on the bug. How do you set your cookie and how do you access it? Can you show us the code? Quote Link to comment Share on other sites More sharing options...
Boo-urns Posted May 7, 2007 Author Share Posted May 7, 2007 setcookie("user", $u, time()+1800); setcookie("pass", $p, time()+1800); //retrieve if(isset($_COOKIE['user'])){ $username = $_COOKIE['user']; }if(isset($_COOKIE['pass'])){ $password = $_COOKIE['pass']; } 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.