IDEA: Centralized userId |
04-05-2019, 05:03 AM
(This post was last modified: 06-12-2019, 08:23 AM by MGatner. Edit Reason: Remove typo )
Hi all- I’ve been working on a number of Addins, and I try to keep them “configuration lite”, but a frequent need is to know the current logged in user. See for example my Visits library, which doesn’t no Auth of its own but would like to record any logged in users with the traffic record. Currently I handle this by checking $_SESSION[‘user_id’], and supplying a config file so folks can provide their location. But working on anew library with the same issue has me wondering:would it be useful to have CI store the userid after login, accessible as a core service or config?
|
Messages In This Thread |
IDEA: Centralized userId - by MGatner - 04-05-2019, 05:03 AM
RE: IDEA: Centralized userId - by albertleao - 04-05-2019, 07:22 AM
RE: IDEA: Centralized userId - by MGatner - 04-05-2019, 11:33 AM
RE: IDEA: Centralized userId - by dave friend - 04-05-2019, 04:00 PM
RE: IDEA: Centralized userId - by MGatner - 04-05-2019, 06:37 PM
RE: IDEA: Centralized userId - by mmx - 01-29-2020, 12:19 AM
RE: IDEA: Centralized userId - by ciadmin - 06-12-2019, 05:47 PM
RE: IDEA: Centralized userId - by MGatner - 06-16-2019, 11:36 AM
RE: IDEA: Centralized userId - by MGatner - 06-17-2019, 06:52 AM
RE: IDEA: Centralized userId - by tony.a - 10-17-2019, 04:01 AM
RE: IDEA: Centralized userId - by AndreiCurelaru - 10-17-2019, 05:08 AM
RE: IDEA: Centralized userId - by InsiteFX - 10-17-2019, 03:53 PM
|