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 Link to comment https://forums.phpfreaks.com/topic/50292-session-side-effect/ 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? Link to comment https://forums.phpfreaks.com/topic/50292-session-side-effect/#findComment-246938 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']; } Link to comment https://forums.phpfreaks.com/topic/50292-session-side-effect/#findComment-246997 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.