Login Form
#1
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.
#2
What is your cookie domain and path set to?
[Image: sig.php]
The little boat gently drifted across the pond exactly the way a bowling ball wouldn't.
#3
MrDoom Wrote:What is your cookie domain and path set to?

Domain is set to nothing, cookie path is set to /
#4
What is the URL of your website?
Dennis Tsang
Former MyBB Team Member
Web: http://dennistt.net


Forum Jump:


Users browsing this thread: 1 Guest(s)