Update the sessions table to the new struture

This commit is contained in:
jengo 2000-09-25 23:17:07 +00:00
parent 2a54423cd2
commit 64d1aa3eb0
4 changed files with 23 additions and 23 deletions

View File

@ -67,13 +67,13 @@ insert into preferences values ('demo','theme','default','');
insert into preferences values ('demo','tz_offset','0','');
CREATE TABLE sessions (
sessionid varchar(255) NOT NULL,
loginid varchar(20),
passwd varchar(255),
ip varchar(255),
logintime int(11),
dla int(11),
UNIQUE sessionid (sessionid)
session_id varchar(255) NOT NULL,
session_lid varchar(20),
session_pwd varchar(255),
session_ip varchar(255),
session_logintime int(11),
session_dla int(11),
UNIQUE sessionid (session_id)
);
CREATE TABLE app_sessions (

View File

@ -145,16 +145,16 @@ insert into preferences values ('demo','tz_offset','0','');
--------------
CREATE TABLE sessions (
sessionid varchar2(255) NOT NULL,
loginid varchar2(20),
passwd varchar2(255),
ip varchar2(255),
logintime number(11),
dla number(11)
session_id varchar2(255) NOT NULL,
session_lid varchar2(20),
session_pwd varchar2(255),
session_ip varchar2(255),
session_logintime number(11),
session_dla number(11)
);
create unique index sessions_sessionid
on sessions (sessionid);
on sessions (session_id);
------------------
-- APP_SESSIONS --

View File

@ -51,13 +51,13 @@ create table groups (
insert into groups (group_name) values ('Default');
create table sessions (
sessionid varchar(255),
loginid varchar(20),
passwd varchar(255),
ip varchar(255),
logintime int,
dla int,
unique(sessionid)
session_id varchar(255),
session_lid varchar(20),
session_pwd varchar(255),
session_ip varchar(255),
session_logintime int,
session_dla int,
unique(session_id)
);
CREATE TABLE app_sessions (

View File

@ -76,8 +76,8 @@ if (! $submit) {
// Since they are logged in, we need to change the password in sessions
// in case they decied to check there mail.
$phpgw->db->query("update sessions set passwd='" . $phpgw->common->encrypt($n_passwd)
. "' where loginid='" . $phpgw_info["user"]["userid"] . "'");
$phpgw->db->query("update sessions set session_pwd='" . $phpgw->common->encrypt($n_passwd)
. "' where session_lid='" . $phpgw_info["user"]["userid"] . "'");
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"]
. "/preferences/","cd=18"));