Would anyone have any experience to share and/or sample code that shows accessing the session state information for a user logged into a Joomla web site? Simply showing the logged in user's name or something开发者_C百科 similar in Silverlight would be very interesting to me.
Thanks
Joomla Session data is stored in your local cookie.
Given that the silverlight app is coming from the same domain(isn't it?!!) as the joomla site, silverlight should be able to access the cookies that joomla saved.
Then you can look at the session table, compare the session id from the cookie, and get your user...
Hope this helps
Joomla tracks session data in a MySQL database, table jos_session. Grab a MySQL DLL and query your Joomla database for the user data.
精彩评论