Thread:Project:Support desk/$ SESSSION in extension/reply

You could use the  global variable directly or use. In special pages you should check, if the session is already set up, e.g. like SpecialUserlogin.php does it: https://github.com/wikimedia/mediawiki/blob/master/includes/specials/SpecialUserlogin.php#L247-L249