MyBB Community Forums

Full Version: Question about login form
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hey i use a login form in my site :

<?php
chdir('fanclub'); // path to MyBB
define("IN_MYBB", 1);
require './global.php';
?>
<style type="text/css">
<!--
body {
	background-color: #464646;
}
-->
</style>
<?php

if($mybb->user['uid'])
{
// The user is logged in, say Hi
echo "Hey, $mybbuser[username].<br>
Thanks for logging in.";
}
else
{
// The user is not logged in, Display the form
echo "<form action='/fanclub/member.php' method='post'>
Username:<br><input type='text' name='username' size='25' maxlength='30' /><br />
Password:<br><input type='password' name='password' size='25' />
<input type='hidden' name='action' value='do_login'>
<input type='hidden' name='url' value='forum.php' />
<input type='submit' class='submit' name='submit' value='Login' /></form><br><a title='register' href='http://www.haifafans.net/fanclub/member.php?action=register'>Become a Fan - Register</a>";
}
?>
http://www.haifafans.net
when i login , i sucess login an i redirect to the home page
but when i go back to the fanclub http://www.haifafans.net
still asking me to login again !
i don't recive
WELCOME (USERNAME)
After "logging in", have you tried refreshing the page? You might be loading a cached version of it, depending on the browser you're using.

Also, logging in via the forum, do you experience the same problem?
i report same prob from many members