开发者

Accessing Joomla session information from Silverlight

开发者 https://www.devze.com 2022-12-31 01:14 出处:网络
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 s

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消