Single Signon - Urgent

Javascript coding ..

Moderators: macek, egami, gesf

w-h
New php-forum User
New php-forum User
Posts: 5
Joined: Sun Aug 29, 2004 2:14 am

Single Signon - Urgent

Postby w-h » Sun Aug 29, 2004 2:18 am

Hello ALL, I have 2 sites equals. All of them request to me an authentication to go ahead; however want to by pass the second one without the authentication - single signon. I would like to know if anybody knows how can I do it and if you have an example it.
I would appreciate it a lot if I receive as soon as possible an answer about it. I have a little urgency to solve this problem.
Thank you in advance.

Regards,

Billy

User avatar
gesf
Moderator
Moderator
Posts: 1717
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

Postby gesf » Sun Aug 29, 2004 2:51 am

A possibility would be using the same user database table and cookies' names for the 'remember' thing.
That way you can verify user for both sites!
Well but it really depends on your code!

BTW: Is that authentication part made with JScript !??

w-h
New php-forum User
New php-forum User
Posts: 5
Joined: Sun Aug 29, 2004 2:14 am

Postby w-h » Sun Aug 29, 2004 3:37 am

Hello Gesf,

Thank you for helping me and your information.
I don't have enough experience with JavaScript, but let me ask you something about you said.

1) How can I pass a cookie from first site to another one?
2) Yes, as far as I know, the authentication is a JavaScript.

Thank you again.

Regards,

Billy

w-h
New php-forum User
New php-forum User
Posts: 5
Joined: Sun Aug 29, 2004 2:14 am

Postby w-h » Sun Aug 29, 2004 3:46 am

Hello Gesf,

I forgot to say that both sites have a different IP address.

Thanks.

Billy

w-h
New php-forum User
New php-forum User
Posts: 5
Joined: Sun Aug 29, 2004 2:14 am

Postby w-h » Sun Aug 29, 2004 5:41 am

Hello ALL,

I was searching this issue and I found out the link below. It is being very difficulty to understand this document.

Has anyone aware about this document?

Oh by the way, I forgot to say that the both sites have different IP address.

Thanks.

Billy

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Postby ruturajv » Sun Aug 29, 2004 10:19 pm

since you have different IP addressess.. Do you have same domain name with diff subdomain ?

if not... then as session management in the DB could be the only option ..

you need to save the sessions.. in the dB.

User avatar
gesf
Moderator
Moderator
Posts: 1717
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

Postby gesf » Mon Aug 30, 2004 4:25 am

No ruturajv, i think he's not even using php... am i right w-h !?

Well, if both sites have a different IP address, it could be 'impossible'!
Here's is a simple explanation why: Cookie's Path

Just a note: The cookies functionality is always the same, don´t matter what scripting laguage you're using!

If you're using PHP/MySQL you can do what ruturajv said!


Return to “JavaScript”

Who is online

Users browsing this forum: No registered users and 1 guest

cron