Webmastersite.net
Register Log In

integrating session login with cookies

Title integrating session login with cookies
Description combining logins
Message Text I'm using sessions in my existing profile login. I've noticed that the gallery is using cookies. Having only one login for both is obviously the best way but, I've been tweaking the index.php login with strange results. Somehow the session is passed the wrong id, logging me into another member's profile. I basically just inserted this into the code: session_start(); $_SESSION[valid] = "yes"; $name = $row['name']; $user_password = $row['user_password']; $_SESSION['id'] = $row['id']; And, when I jump to my existing profile edit, it either logs me into the wrong profile or determines my session is invalid. What would be the best/easiest way to integrate the two? I don't mind using cookies but, I read that sessions were more reliable/safer (being that cookies are stored on the users machine). At this point, I probably just want to do whichever is easier. Thanks!
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership knotworking
Views 696 views. Averaging 0 views per day.
Similar Topics
Submission Date May 17, 2005 - 6:39 AM