Jump to content

Trouble with DW MX login script


Recommended Posts

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

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>

[!--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.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.