grandadevans Posted December 31, 2005 Share Posted December 31, 2005 Hi. I am having serious trouble with my login page. [a href=\"http://www.thebirdsblock.com/login.php\" target=\"_blank\"]Login Page[/a] I have tried everything that I can think of to fix it. I am now willing to pay somebody to fix it. The problem is that I can get my MM_Username to work once if I try a blank page with the login server behaviour but if I put it into my template I cannot get it to work. I have tried everything I can think of. If the login is successful it should go to the index page and replace the login gif with a my account gif. It redirects a it should but it wont hold the session variable. I have created a test user of Username: test password: password if anybody wants to have a go. As for any offers to take control of it, let me know how much you want (sensible quotes only though). Thanks in advance to all. John Link to comment https://forums.phpfreaks.com/topic/3128-trouble-with-dw-mx-login-script/ Share on other sites More sharing options...
degsy Posted January 5, 2006 Share Posted January 5, 2006 You could stick a foreach loop in to check what session variables are set <?php session_start(); $_SESSION['name'] = 'Joe Bloggs'; $_SESSION['content'] = 'test'; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> </head> <body> <?php foreach($_SESSION as $key => $val){ echo "$key: $val <br>"; } ?> </body> </html> Link to comment https://forums.phpfreaks.com/topic/3128-trouble-with-dw-mx-login-script/#findComment-10616 Share on other sites More sharing options...
redbullmarky Posted January 13, 2006 Share Posted January 13, 2006 [!--quoteo(post=333511:date=Jan 5 2006, 02:01 PM:name=degsy)--][div class=\'quotetop\']QUOTE(degsy @ Jan 5 2006, 02:01 PM) 333511[/snapback][/div][div class=\'quotemain\'][!--quotec--] You could stick a foreach loop in to check what session variables are set that's pretty much it. you need to remember to start the session by putting session_start(); at the top of EVERY page you want to access $_SESSION['MM_Username'] in. Link to comment https://forums.phpfreaks.com/topic/3128-trouble-with-dw-mx-login-script/#findComment-10857 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.