Jump to content


Photo

Trouble with DW MX login script


  • Please log in to reply
2 replies to this topic

#1 grandadevans

grandadevans
  • Members
  • PipPipPip
  • Advanced Member
  • 30 posts

Posted 31 December 2005 - 11:08 AM

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

Please sign our petition and support our troops<br />
<a href="http://www.postedove...ition.php"><img src="http://www.postedove...o_campaign.jpg" /></a>

#2 degsy

degsy
  • Members
  • PipPip
  • Member
  • 20 posts

Posted 05 January 2006 - 02:01 PM

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>



#3 redbullmarky

redbullmarky
  • Staff Alumni
  • Advanced Member
  • 2,863 posts
  • LocationBedfordshire, England

Posted 13 January 2006 - 12:06 PM

[!--quoteo(post=333511:date=Jan 5 2006, 02:01 PM:name=degsy)--][div class=\'quotetop\']QUOTE(degsy @ Jan 5 2006, 02:01 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
You could stick a foreach loop in to check what session variables are set
[/quote]

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.

"you have to keep pissing in the wind to learn how to keep your shoes dry..."

I say old chap, that is rather amusing!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users