Current time: 12-23-2024, 10:35 PM Hello There, Guest! (LoginRegister)


Post Reply 
What is necessary for login to ispCP
Author Message
davidxone Offline
Newbie
*

Posts: 5
Joined: Jan 2011
Reputation: 0
Post: #1
What is necessary for login to ispCP
Hi,

I have problem with logining to ispCP from my external apllication, where is user authorized and can see all of his accounts from there.

I want, to simple clicking be loged in ispCP...

I seted up this sessions and write it to database, but when i redirect to admin.mypage.tld it isnt working...please help me...if you understand what i need Smile

$_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'] = $id;
$con->query("INSERT INTO login(session_id,ipaddr,lastaccess,user_name) VALUES('".session_id()."','".$_SERVER["REMOTE_ADDR"]."','".$time."','".$name."')");
write_log($name." logged in.");
03-19-2011 01:32 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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