MyBB Community Forums

Full Version: Login Form
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was creating a web site that uses MyBB forum software like mysite.com with mysite.com/forums/.

I want to have a login form on mysite.com that logs them in on forums and then redirects them to the main site not forums.

<form name="ulogin" method="post" action="/forum/member.php?action=do_login&url=http://www.mysite.com/">
<center>Username:<br><input size="15" name="username" type="text"><br>
Password:<br><input size="15" name="password" type="password">
<input type="submit" value="Login">

WHen they click the Login button it takes them to the target forum login page says theyve been successfully logged in and will be redirected. it does redirect them back to main site.

The problem here is that when you go to forums afterwards it says there not logged in, even though theres an entry for the person in mybb_sessions.

Any ideas? Cool

It does work if they are not redirected to main site, works if there brought to forums instead.
What is your cookie domain and path set to?
MrDoom Wrote:What is your cookie domain and path set to?

Domain is set to nothing, cookie path is set to /
What is the URL of your website?