Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1843

General Questions/New to Joomla! 5.x • Re: Can't get userId to pass to slim 4 code

$
0
0
So I found a potential solution, but I'm not sure what problems might arise from it.

1) With Track Session Metadata turned on in the Joomla config the *_session joomla table tracks userid and username
2) I can walk through $_COOKIE to find a value that matches a session_id in the *_session joomla table
3) I can then return the userid if there is a match
4) To make sure that session doesn't expire I update the timestamp for the matched entry in the *_session joomla table

Is there a reason not to use this approach?

Statistics: Posted by Pallieguy — Wed Apr 17, 2024 7:21 pm



Viewing all articles
Browse latest Browse all 1843

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>