DMXzone Security Provider PHP Support Product Page

Answered

How do I use the logged in user ID as a session variable?

Asked 19 Apr 2018 03:25:53
1
has this question
19 Apr 2018 03:25:53 Lee Reynolds posted:
How do I use the logged in user ID as a session variable? Specifically, I want to insert that user id as a column in a database to show who made the database entry. Also, might be a straightforward way to pull a database query for a user profile page.

Replies

Replied 19 Apr 2018 08:08:37
19 Apr 2018 08:08:37 Teodor Kuduschiev replied:
Hi Lee,
Тhe session is generated like: SecurityProviderName+"Id"
So if your security provider name in the server connect is called: dbUsers then your session name is: dbUsersId
Replied 19 Apr 2018 15:23:13
19 Apr 2018 15:23:13 Lee Reynolds replied:
Worked perfectly! Thanks

Reply to this topic