Current time: 05-28-2024, 07:26 AM Hello There, Guest! (LoginRegister)


Post Reply 
Login from website to ispCP
Author Message
davidxone Offline
Newbie
*

Posts: 5
Joined: Jan 2011
Reputation: 0
Post: #1
Login from website to ispCP
Hello,

I need for my website make new "external login".
User is loged in my own system and there he has his hosting accounts > my idea is - if user click on his hosting account from list, that automatically log him to choosed hosting ispCP account.

So I need PHP script to make this...
I tried it, but still a cant login into ispCP.

Now I´m using this sessions:
$_SESSION['user_logged'] = $name;
$_SESSION['user_pass'] = $pass;
$_SESSION['user_type'] = $type;
$_SESSION['user_id'] = $id;
$_SESSION['user_email'] = $email;
$_SESSION['user_created_by'] = $by;
$_SESSION['user_login_time'] = $cas;
$_SESSION['logged_from'] = $id;
$_SESSION['logged_from_id'] = Here i dont know value to asign.

Database insert:
INSERT INTO login(session_id,ipaddr,lastaccess,user_name) VALUES('".session_id()."','".$_SERVER["REMOTE_ADDR"]."','".$time."','".$name."')

AND

write_log($name." logged in.");

...
what i need more to make it happend? Thank you for your answers Smile
03-20-2011 02:05 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Login from website to ispCP - davidxone - 03-20-2011 02:05 AM
RE: Login from website to ispCP - kilburn - 03-20-2011, 04:48 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)