RecordsetCache
and getPersistentRecords
.
public.anagrafiche.concurrent_sessions
will be added to set flag to enable / disable multiple sessions at user level.
public.session
will be created to store multiple session information. Column | Type | Description![]() | Example |
---|---|---|---|
session_time | timestamp without time zone | Authentication phase time | 2016-12-08 14:58:14.417584 |
user_ip | character varying(15) | Browser IP address | 111.112.113.114 |
session_inactive_time | integer | Last access time minutes from 01-01-1970 00:00 | 24722284 |
previus_session_time | timestamp without time zone | previous auth. phase time equal to session_time at first time | 2016-12-07 14:53:41.169064 |
id | sequence | Primary key | 111 |
session | character varying(32) | Random string | cd3bb.7561b.ca4a9.62687fe096ff51 |
user_agent | character varying | User agent | 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0' |
id_anagrafiche | integer | User identification with PK anagrafiche.id | 22 |
session_pkey
will be added on session.id
column.
session_idx
will be created on recordset
table for recordset.session
column.
recordset_session
will be added on table recordset
.
CREATE TABLE public.session ( id serial, id_anagrafiche integer, user_agent character varying, user_ip character varying(15), session character varying(32), session_time timestamp without time zone, previus_session_time timestamp without time zone, session_inactive_time integer, CONSTRAINT session_pkey PRIMARY KEY (id), CONSTRAINT session_id_anagrafiche FOREIGN KEY (id_anagrafiche) REFERENCES public.anagrafiche (id) MATCH SIMPLE ON UPDATE RESTRICT ON DELETE CASCADE ); CREATE INDEX fki_session_id_anagrafiche ON public.session USING btree (id_anagrafiche); CREATE UNIQUE INDEX session_idx ON public.session USING btree (session); ALTER TABLE public.recordset RENAME id_anagrafiche TO id_session; -- Application permissions GRANT SELECT, UPDATE, INSERT, DELETE ON TABLE public.session TO masonsql; GRANT SELECT, UPDATE ON SEQUENCE public.session_id_seq TO masonsql;
session
) from public.anagrafiche
table will not be used in future.
public.session.session
public.anagrafiche.concurrent_session
will be added to manage concurrent sessions for single user. If value set to true then concurrent sessions will be allowed
anagrafiche.concurrent_sessions = null
) then only one session whith the same user it is possible in the table public.session
(the frontend beavior remain the same of current but using the new table public.session
). This is default behavior of system for each user.
anagrafiche.concurrent_sessions = true
) then session will get selected based on ( public.session.session
) criteria only.
public.recordset.id_session
will be added to manage recordset cache based on current session ( public.session.id
)
public.anagrafiche.concurrent_sessions
column remain null (default value).
sessioni simultanee:
checkbox to allow user to enable/disable concurrent sessions.
public.anagrafiche.concurrent_sessions
set to true.
public.anagrafiche.concurrent_sessions
set to null.
anagrafiche.no_psw_expiration
set to true.
anagrafiche.no_psw_expiration
set to null.
public.session
table when user will logs in.