i have done this in order to get the user information from session
$_SESSION['Auth']['User']['id']
Question
i have downloaded a php library or you can say a third party module and put them into the app/Vendors folder.there is one php file in which i have to read the user from session .. well i am using auth component in my webapp ..so i dont how to import auth component there and how to read the user
at the moment the file is in this directory
app/Vendor/mynewlibrary/examples/bootstrap.php
and the other thing i want to mention here is that the bootstrap is not a class .. its a simple php file in which i need a userid.. i want to access the auth component here
Solution
i have done this in order to get the user information from session
$_SESSION['Auth']['User']['id']