Fatal Error Call To Undefined Function Session_register In Wamp
Contents |
here for a quick overview of the site Help Center Detailed answers to any fatal error call to undefined function session_register() in php questions you might have Meta Discuss the workings and policies of
Fatal Error: Call To Undefined Function Session_unregister()
this site About Us Learn more about Stack Overflow the company Business Learn more about call to undefined function session_is_registered() fix hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow session_is_registered() is deprecated is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Fatal error: Call to undefined function session_register() [duplicate] up vote 0 down vote favorite This question already has an answer here: PHP/MySQL login 2 answers I'm new to php and was
Fatal Error Call To Undefined Function Session_register() In Xampp
wondering if anyone could help me debug, the following error. Fatal error: Call to undefined function session_register() It occurs as I get a user to login. PHP Error it throws out at line 16 is $active=$row['active']; php share|improve this question asked Mar 2 '13 at 20:50 Sam 1312313 marked as duplicate by mario, cryptic ツ, Ocramius, tereško, Graviton Mar 5 '13 at 1:56 This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. 5 The function is no l
here for a quick overview of the site Help Center Detailed answers to any questions you if session_is_registered myusername might have Meta Discuss the workings and policies of this session_register w3schools site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers
Session_is_registered Not Working
or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community http://stackoverflow.com/questions/15179308/fatal-error-call-to-undefined-function-session-register of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Call to undefined function session_register() [duplicate] up vote 5 down vote favorite This question already has an answer here: Fatal error: Call to undefined function session_register() [duplicate] 2 answers Please help me everyone !! why http://stackoverflow.com/questions/16082420/call-to-undefined-function-session-register i can't login , and this the error : *Fatal error: Call to undefined function session_register() in C:\xampp\htdocs**\proses1.php on line 27* this proses1.php code : "; exit; } $username = stripslashes($username); $password = stripslashes($password); $username = mysql_real_escape_string($username); $password = mysql_real_escape_string($password); $sql="SELECT login.username, login.password, login.status FROM login WHERE login.username='$username' AND login.password='$password'"; $result=mysql_query($sql) or die(mysql_error()); $count=mysql_num_rows($result); // If result matched $myusername and $mypassword, table row must be 1 row $r=mysql_fetch_array($result); session_start(); session_register("username"); session_register("password"); session_register("status"); //session_register("nojual"); $_SESSION['username']=$r[username]; $_SESSION['password']=$r[password]; $_SESSION['status']=$r[status]; //$_SESSION['nojual']=$r[nojual]; //$_SESSION['nojual']=$r[nojual]; if ($_SESSION['status']=='dokter') // ini untuk admin { header("location:home_dokter.php"); }else if($_SESSION['status']=='apotik'){ header("location:uji.php"); }else if($_SESSION['status']=='bagian persediaan'){ header("location:obat.php"); }else{ print "scriptalert('anda salah login!'); javascript:history.go(-1);"; exit; } ?> php mysql login share|improve this question edited Apr 18 '13 at 13:55 afuzzyllama 4,77442854 asked Apr 18 '13 at 12:02 Alver 741110 marked as duplicate by Shoe, Tomasz Kowalczyk, IronMan84, Dan Esparza, afuzzyllama Apr 18 '13 at 13:54 This
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time https://www.experts-exchange.com/questions/28451647/Fatal-error-Call-to-undefined-function-session-is-registered.html Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > Fatal error: Call to undefined function session_is_registered() Want to Advertise Here? Solved Fatal error: Call to undefined call to function session_is_registered() Posted on 2014-06-09 PHP 1 Verified Solution 15 Comments 9,178 Views Last Modified: 2014-06-16 Today I started getting this error on my login page. Fatal error: Call to undefined function session_register() in /home/post22/public_html/parent-corner/checklogin.php on line 33 I understand it has something to do with an upgrade to PHP.. what is the fix? Help. checklogin.php 0 Question call to undefined by:BHUC Facebook Twitter LinkedIn Google LVL 58 Best Solution byGary Change to if( !isset($_SESSION['myusername']) ){ Go to Solution 14 Comments LVL 107 Overall: Level 107 PHP 102 Message Active today Expert Comment by:Ray Paseur2014-06-09 Without a little more information about your code base, we might not be able to fix it. All of the PHP instructions are documented in the online man pages, including session_register() which was deprecated at PHP 5.3 (several years ago) and removed in PHP 5.4. Depending on your exact code base you may want to read this article about Register Globals, too. If you read the man page and still don't know what to do, please post the code involved and we can help look for a solution. 0 Message Author Comment by:BHUC2014-06-09 Ray - I attached the page.... is it not the right page? 0 LVL 107 Overall: Level 107 PHP 102 Message Active today Expert Comment by:Ray Paseur2014-06-09 Sorry -- didn't see it (blind). Here it is in the code snippet