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
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>

Link to comment
Share on other sites

[!--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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.