View Full Version : PHP Session ID Login
10-01-2003, 06:34 PM
Hi can anyone help me creating this script:
1. I want to create a script what you can register to a site and it stores your details in maybe a cookie format. When you come to login it grabs the cookie and also sets a session ID. Please can anyone help me?
10-01-2003, 09:05 PM
I want to create a script what you can register to a site and it stores your details in maybe a cookie format
// form processed already, this is the validation page
// form field called username
// Cookie now set with username included
$_SESSION['username'] = $_POST['username'];
// Session now set with username
Now login page
// do query on cookie info to check the user does actually exist etc
// Send straight to members area, as user is already logged in
// Send to login form
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.