Getting the logged in user as a variable.

Subscribe to Getting the logged in user as a variable. 4 posts

avatar for Cheapcrap Cheapcrap 9 posts
Flag Post

Hello, community!
So, I have a problem. I need to get the user that is logged in to a web page. The user’s name can be accessed from an xml file (www.page.com/test.php).
If no user is logged in, the text shows up as ‘guest’. When I try to access the file from AS3, it always shows up as guest, so I am guessing that it doesn’t show the right session.
Any help on how to fix this will be really appreciated. Thanks!

 
avatar for Cheapcrap Cheapcrap 9 posts
Flag Post

Still no answer, bringing it up :/

 
avatar for vale21 vale21 9 posts
Flag Post

#1. Be sure that your test.php file is not cached by your browser.
#2. If you have a session on http://page.com and from flash you call http://www.page.com this may result into an invalid session

 
avatar for Senekis93 Senekis93 4090 posts
Flag Post
Originally posted by Cheapcrap:

Still no answer, bringing it up :/

You’re explaining the issue, which is good, but it would be easier for people to help you if you also shared some of the relevant code.