<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Simple Single Sign-On for PHP (Ajax compatible)</title>
	<atom:link href="http://www.jasny.net/articles/simple-single-sign-on-for-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasny.net/articles/simple-single-sign-on-for-php/</link>
	<description>It&#039;s all about me, mysql and Einstein.</description>
	<lastBuildDate>Fri, 03 Sep 2010 12:03:29 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Arnold Daniels</title>
		<link>http://www.jasny.net/articles/simple-single-sign-on-for-php/comment-page-3/#comment-270119</link>
		<dc:creator>Arnold Daniels</dc:creator>
		<pubDate>Fri, 03 Sep 2010 12:03:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=168#comment-270119</guid>
		<description>The client sends the login credentials to the broker. The broker sends them to server. It is just the middle man.

You should &lt;b&gt;not&lt;/b&gt; see the broker as a special kind of server. The broker holds no information. You can see it as a special kind of client. Therefore it needs to request any information from the server using an HTTP request, just like a regular client would.

In short: If the broker wants to print the name of the user, it sends an HTTP request to the server asking the name (and perhaps more user details).</description>
		<content:encoded><![CDATA[<p>The client sends the login credentials to the broker. The broker sends them to server. It is just the middle man.</p>
<p>You should <b>not</b> see the broker as a special kind of server. The broker holds no information. You can see it as a special kind of client. Therefore it needs to request any information from the server using an HTTP request, just like a regular client would.</p>
<p>In short: If the broker wants to print the name of the user, it sends an HTTP request to the server asking the name (and perhaps more user details).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Katravalli</title>
		<link>http://www.jasny.net/articles/simple-single-sign-on-for-php/comment-page-3/#comment-269950</link>
		<dc:creator>Katravalli</dc:creator>
		<pubDate>Fri, 03 Sep 2010 04:48:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=168#comment-269950</guid>
		<description>Hi Arnold Daniels,
Thanks for your reply and I understand what you are saying but unable to retrieve and print the user session info from server. Can you please give simple example that how to call and print user data. For example, If login with a username &quot;katravalli&quot; and password &quot;abc123&quot;.....  after login I would like to welcome the user something like &quot;Welcome Katravalli&quot;.... Here is my problem.... I&#039;m unable to print Username after welcome.... unable to call from server sso...
Hope you got my point.... can u pls give simple example how it is.. and how to call...!!!!
regards
pavan</description>
		<content:encoded><![CDATA[<p>Hi Arnold Daniels,<br />
Thanks for your reply and I understand what you are saying but unable to retrieve and print the user session info from server. Can you please give simple example that how to call and print user data. For example, If login with a username &#8220;katravalli&#8221; and password &#8220;abc123&#8243;&#8230;..  after login I would like to welcome the user something like &#8220;Welcome Katravalli&#8221;&#8230;. Here is my problem&#8230;. I&#8217;m unable to print Username after welcome&#8230;. unable to call from server sso&#8230;<br />
Hope you got my point&#8230;. can u pls give simple example how it is.. and how to call&#8230;!!!!<br />
regards<br />
pavan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold Daniels</title>
		<link>http://www.jasny.net/articles/simple-single-sign-on-for-php/comment-page-3/#comment-269835</link>
		<dc:creator>Arnold Daniels</dc:creator>
		<pubDate>Thu, 02 Sep 2010 23:41:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=168#comment-269835</guid>
		<description>&lt;b&gt;&lt;em&gt;Pavan Katravalli&lt;/em&gt;&lt;/b&gt; Well to be honest, the main article tries to explain just that.

There is 1 session, which lives on the SSO server. Let&#039;s say that the broker would know the session id of the client, the broker could act like the client. However since the session id is in a cookie a another domain, the broker has no way to fetch that session id.

Instead, the broker will tell the client to please tell the server that he (the broker) is privileged to act on behalf of the client. The server will respect that, allow the broker to use the session on the server. That&#039;s the basic trick.

Any calls that the client would normally make directly to a website regarding a session, like logging in, adding products to a cart, etc, can now be done by the broker instead. Since the broker is a machine and not a human, the server should return XML of JSON instead of HTML.

That&#039;s all there is to it :)</description>
		<content:encoded><![CDATA[<p><b><em>Pavan Katravalli</em></b> Well to be honest, the main article tries to explain just that.</p>
<p>There is 1 session, which lives on the SSO server. Let&#8217;s say that the broker would know the session id of the client, the broker could act like the client. However since the session id is in a cookie a another domain, the broker has no way to fetch that session id.</p>
<p>Instead, the broker will tell the client to please tell the server that he (the broker) is privileged to act on behalf of the client. The server will respect that, allow the broker to use the session on the server. That&#8217;s the basic trick.</p>
<p>Any calls that the client would normally make directly to a website regarding a session, like logging in, adding products to a cart, etc, can now be done by the broker instead. Since the broker is a machine and not a human, the server should return XML of JSON instead of HTML.</p>
<p>That&#8217;s all there is to it <img src='http://www.jasny.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Katravalli</title>
		<link>http://www.jasny.net/articles/simple-single-sign-on-for-php/comment-page-3/#comment-269582</link>
		<dc:creator>Katravalli</dc:creator>
		<pubDate>Thu, 02 Sep 2010 12:12:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=168#comment-269582</guid>
		<description>Hi Arnold Daniels,
Your SSO is very much useful for our site(s). But need a small clarification from you. As in earlier post somebody also asked that how to display/print SESSION Value (Username, though which was used for logged in). You given reply stating that use SSO Sever to call session variable. 
But i&#039;m unable to retrieve user information from Server SSO. Can you please give a brief note and solution how to call the user details or session from Server SSO. 
If u can explain it is very much useful for me as well as somany users using this script.
Regards
Pavan</description>
		<content:encoded><![CDATA[<p>Hi Arnold Daniels,<br />
Your SSO is very much useful for our site(s). But need a small clarification from you. As in earlier post somebody also asked that how to display/print SESSION Value (Username, though which was used for logged in). You given reply stating that use SSO Sever to call session variable.<br />
But i&#8217;m unable to retrieve user information from Server SSO. Can you please give a brief note and solution how to call the user details or session from Server SSO.<br />
If u can explain it is very much useful for me as well as somany users using this script.<br />
Regards<br />
Pavan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold Daniels</title>
		<link>http://www.jasny.net/articles/simple-single-sign-on-for-php/comment-page-3/#comment-268777</link>
		<dc:creator>Arnold Daniels</dc:creator>
		<pubDate>Tue, 31 Aug 2010 23:26:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=168#comment-268777</guid>
		<description>&lt;b&gt;&lt;em&gt;raudy&lt;/em&gt;&lt;/b&gt; 1. The SSO server should hold all login credentials. The broker should not hold that information. You can do authentication anyway you are doing it now. Using a MySQL db is most common, but LDAP is possible as well.

2. There is no framework I know that has this (or something similar) implemented. Zend Framework could be easily extended to have this feature. You will need to program that yourself though.

Good luck</description>
		<content:encoded><![CDATA[<p><b><em>raudy</em></b> 1. The SSO server should hold all login credentials. The broker should not hold that information. You can do authentication anyway you are doing it now. Using a MySQL db is most common, but LDAP is possible as well.</p>
<p>2. There is no framework I know that has this (or something similar) implemented. Zend Framework could be easily extended to have this feature. You will need to program that yourself though.</p>
<p>Good luck</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ar_raudy</title>
		<link>http://www.jasny.net/articles/simple-single-sign-on-for-php/comment-page-3/#comment-268751</link>
		<dc:creator>ar_raudy</dc:creator>
		<pubDate>Tue, 31 Aug 2010 22:21:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=168#comment-268751</guid>
		<description>@Arnold, thanks for your nice tutorial...
I have some question. I hope you can answer them :
1. I get task to build a system that can handle (using SSO) some domain that have some different database server. what must I do to that. must I move all of the user information from all database server to just one database server?can I use LDAP to implement that purpose? (I&#039;m sorry, I&#039;m newbie :))
2. can you give me some advice about framework in PHP for that purpose ?

thanks alot for your answer..</description>
		<content:encoded><![CDATA[<p>@Arnold, thanks for your nice tutorial&#8230;<br />
I have some question. I hope you can answer them :<br />
1. I get task to build a system that can handle (using SSO) some domain that have some different database server. what must I do to that. must I move all of the user information from all database server to just one database server?can I use LDAP to implement that purpose? (I&#8217;m sorry, I&#8217;m newbie <img src='http://www.jasny.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )<br />
2. can you give me some advice about framework in PHP for that purpose ?</p>
<p>thanks alot for your answer..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold Daniels</title>
		<link>http://www.jasny.net/articles/simple-single-sign-on-for-php/comment-page-3/#comment-264913</link>
		<dc:creator>Arnold Daniels</dc:creator>
		<pubDate>Mon, 23 Aug 2010 23:22:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=168#comment-264913</guid>
		<description>&lt;b&gt;&lt;em&gt;williamjlp&lt;/em&gt;&lt;/b&gt; Please read the previous comments. There is no session on the brokers. You need to request the username from the SSO server.</description>
		<content:encoded><![CDATA[<p><b><em>williamjlp</em></b> Please read the previous comments. There is no session on the brokers. You need to request the username from the SSO server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: williamjlp</title>
		<link>http://www.jasny.net/articles/simple-single-sign-on-for-php/comment-page-3/#comment-264886</link>
		<dc:creator>williamjlp</dc:creator>
		<pubDate>Mon, 23 Aug 2010 22:23:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=168#comment-264886</guid>
		<description>On login page, How can access to $_SESSION[&#039;username&#039;]?</description>
		<content:encoded><![CDATA[<p>On login page, How can access to $_SESSION['username']?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold Daniels</title>
		<link>http://www.jasny.net/articles/simple-single-sign-on-for-php/comment-page-3/#comment-261334</link>
		<dc:creator>Arnold Daniels</dc:creator>
		<pubDate>Tue, 17 Aug 2010 19:24:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=168#comment-261334</guid>
		<description>&lt;b&gt;&lt;em&gt;zapatista&lt;/em&gt;&lt;/b&gt; The broker doesn&#039;t has a session, only the server has a session. Any information you store in a session on the broker is *not* shared with other brokers.

Also read comment &lt;a href=&quot;#comment-254592&quot; rel=&quot;nofollow&quot;&gt;#129&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p><b><em>zapatista</em></b> The broker doesn&#8217;t has a session, only the server has a session. Any information you store in a session on the broker is *not* shared with other brokers.</p>
<p>Also read comment <a href="#comment-254592" rel="nofollow">#129</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zapatista</title>
		<link>http://www.jasny.net/articles/simple-single-sign-on-for-php/comment-page-3/#comment-260867</link>
		<dc:creator>zapatista</dc:creator>
		<pubDate>Mon, 16 Aug 2010 23:44:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=168#comment-260867</guid>
		<description>Hi Arnold,

i&#039;ve try ur work with different domain, my config broker

public $url = &quot;http://mygoogleconnect.tld/jasny/server/sso.php&quot;;

and i tested with url
http://mytwitterclient.tld/jasny/broker/

why phpsession not generated only session_token, can u pleaz help me

thanx</description>
		<content:encoded><![CDATA[<p>Hi Arnold,</p>
<p>i&#8217;ve try ur work with different domain, my config broker</p>
<p>public $url = &#8220;http://mygoogleconnect.tld/jasny/server/sso.php&#8221;;</p>
<p>and i tested with url<br />
<a href="http://mytwitterclient.tld/jasny/broker/" rel="nofollow">http://mytwitterclient.tld/jasny/broker/</a></p>
<p>why phpsession not generated only session_token, can u pleaz help me</p>
<p>thanx</p>
]]></content:encoded>
	</item>
</channel>
</rss>
