/    Sign up×
Community /Pin to ProfileBookmark

Login to a messenger from a site

Hi all,

I am almost new to PHP. I have stuck with an issue which is taking my hair off everyday.
Please help me.

I have a site, in which every user has a username and pasword. I need to integrate a messenger to this site.
Users can use the same user name and password of the site to login to the messenger also. ie, with single user name and password, users can login to the site and messenger as well.

In the site, there is a link “Messenger”. When clinking this link, the users are supposed to be logged in to the
messenger(No more explicit login to this messenger) using the username and password that the user has already logged on the site.That is, the login to the messenger should be automatic, no external login to this messnger is allowed.

The site files and messenger files are in different server. I have access to both this files.

Because of the security problem, i cannot pass the username and pasoword as query string.
Summarizing the issue ,

User Login to the site(providin username and password) -> Clicking on Link ‘Messenger’ -> Messenger Popup appears ready to chat

If i am passing the user name and variable as folllows,

<a href = “www.xyzmessenger.com/login.php?user=test&password=testpas”>Messenger</a>

the security issue arises.

Even if i pass it by encrypting, whoever sees the querystring in the address bar can easily use to login further.

How to do this with much security? How can i pass?What to pass?

I have access to re-write the code in messeneger/login.php…………

PLEASE HELP ME…..

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@sushiMar 18.2008 — there isn't enough info, and I'm not sure if revealing how your login works is safe at all. I would check that login.php is taking the parameters from $_URL[''], and go from there if that's how you want to do it.
×

Success!

Help @subeeshkk spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...