Got the session code mostly working. Main problem is clearing out cookies - can't for the life of me seem to get the browser to immediately delete the cookie. Best I can do is getting it cleared out when the browser closes.
Next comes fleshing out the login process. And the use of MySQL.