X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=inline;f=session.php;h=4bbaea92ebfe134816e02d1a7ac073bb78b5c30b;hb=8355c5788f7179a3674ab1121c859530e838bb64;hp=b04ed57e3edb5a41945cf7264e07f013b69fb7f1;hpb=0d4a3e75b53c61921f0611f9fc46ebca22495d7b;p=wfpl.git diff --git a/session.php b/session.php index b04ed57..4bbaea9 100644 --- a/session.php +++ b/session.php @@ -18,7 +18,7 @@ # along with wfpl; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# you'll need this file that calles db_connect() +# you'll need this file that calls db_connect() if(!isset($GLOBALS['wfpl_db_handle'])) { if(file_exists('db_connect.php')) { require_once('db_connect.php'); @@ -32,6 +32,9 @@ if(!isset($GLOBALS['wfpl_db_handle'])) { # and these database tables: # create table wfpl_sessions (id int unique auto_increment, session_key varchar(16), length int, expires int); # create table wfpl_session_data (id int unique auto_increment, session_id int, name varchar(100), value text); +# run this command to install/clear the tables: +# mysql DATABASE_NAME < code/wfpl/examples/session.sql +# note: you may need these parameters for mysql: -u USERNAME -p # GLOSSARY #