<div class="gmail_quote">Hi Andrew,</div><div class="gmail_quote"><br></div><div class="gmail_quote">On Thu, May 15, 2008 at 3:32 PM, Andrew Stewart <<a href="mailto:boss@airbladesoftware.com" target="_blank">boss@airbladesoftware.com</a>> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello El Rug,<br>
<br>
Oh, the horror.<br>
<br>...<br>
<br>
I'm thinking the only way to do this is to:<br>
<br>
1.  Grab the cookie which (I assume) Mambo sets when you log in.</blockquote><div><br></div><div>It is PHP what sets a cookie containing the session_id which, usually, maps to a temporary file that holds the session content/variables.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
2.  Extract the user's id from it.<br>
<br>
Once I've got the user's id, everything's simple because the two apps share the same database.</blockquote><div><br></div><div>It wil be probably easier to use db based PHP sessions but there is a performance hit there:</div>

<div><a href="http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/" target="_blank">http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/</a><br></div><div><br>
</div><div>or pass the session_id to your Rails app.</div><div><br></div><div>Paul</div><div><br></div>
<div> </div></div>