Jump to content


Photo

Staying logged-in with cookies?


  • Please log in to reply
1 reply to this topic

#1 RDKL PerFecT

RDKL PerFecT
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 27 March 2006 - 07:36 PM

Yeah, I basically just want it so that when a user logs in, cookies keep them logged in. Here is my login form and checklogin.php

LOGINForm
<form action="Login Page" method="post"><br />
          <input type="text" name="username" size="17">
          <input type="password" name="password" size="17">
          <input type=submit name=Submit value=Submit!>

Where Login is Checked
// Convert password to md5 hash 
$password = md5($password); 

// check if the user info validates the db 
$sql = mysql_query("SELECT * FROM Members WHERE username='$username' AND password='$password' AND Activation='1'"); 
$login_check = mysql_num_rows($sql);

If anyone can help with this I would be most greatful.

#2 RDKL PerFecT

RDKL PerFecT
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 29 March 2006 - 11:23 AM

christ anyone?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users