HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Developers' Forum (
-   -   Get logged in user (

Kludd 13th April 2011 17:49

Get logged in user

I'm quite new to ispconfig and I am currently developing a new module. This is rather embarassing, because the answer i probably easy, but how do I get the current logged in username?

I have coded my own payment script, and I need to crosscheck between the ispconfig database, and my payment scripts database.

till 13th April 2011 18:16

Use this to get the full user details:


Kludd 13th April 2011 19:00

That gives me no output at all, it seems as if $_SESSION is completely empty.

till 13th April 2011 19:17

You have to do that in a file that belongs to ispconfig. This means that it has to include the config file and app file as required for all files used in the ispconfig interface.

If you call it outside of the ispconfig app contect, then it will be empty of course.

All times are GMT +2. The time now is 11:29.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.