View Full Version : Logging in on main page
Radon3k
07-20-2003, 08:13 PM
I need to create a page that has a login screen. When you login it kicks you back to the home page but you are still logged into the forums. It has to use sessioncookies for it to work. Also when you go to the home page and not the forums you have to be logged in. So assuming you've logged into the forums at one point and you set it to remember you then each time you visit the page you have to be logged in. Anyone know how I can accomplish this?
Issvar
08-03-2003, 03:05 PM
Include global.php in your non-vb pages, be sure to add the session data to each link on and to your own site, for the login use a small form that contains something like:
<form action="/forum/member.php" method="post">
Username: <input type="text" name="username"><br>
Password: <input type="password" name="password"><br>
<input type="hidden" name="action" value="login">
<input type="hidden" name="url" value="/index.php?s=">
<input type="submit" value="Login">
</form>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.