What is the code for getting the logged in user?

Post Reply
User avatar
cobber
Master Bludit
Posts: 78
Joined: Sun Feb 28, 2016 10:15 am
Location: Scotland
Has thanked: 21 times
Been thanked: 5 times

Tried looking but can't seem to find anything.

I'm looking for some php to grab the current user logged in .
I know I can use a session variable that appears to work as far as I can see.

Code: Select all

$_SESSION["s_username"]
Just wondered if there was a preferred Bludit way


Many thanks
Post Reply