PuReWebDev

Well-Known Member
May 18, 2004
47
0
156
Orlando, FL.
Hello all. I'm interested in creating custom apps for my hosting clients, I didn't come acrossed a whole lot in the way of documentation for whm/cpanel's variables. Specifically, session info. I'm wanting to use the existing cpanel authentication session to include into the scripts I'm going to create. I've thought about simply checking for the referring page to see if it was a cpanel page, the logic being that if it was a cpanel page then the user must have already logged in and could get access to the script I'm creating, however, this is a work around, and since I'm starting development, I'd really like to do it right from the start.

Thanks for any useful replies, links, documentation, examples.


PuReWebDev
 

fitzy

Registered
Jan 31, 2005
1
0
151
I am also writting a script, you can get which user they are buy using this varible:
$_SERVER['REMOTE_USER']

That is a PHP one, if that exists, then they are logged in.