Forums | Mahara Community
Developers
/
Passing a working session ID to script
01 December 2009, 18:16
I'm trying to implement a Flash/Javascript based file uploader (http://www.uploadify.com), but I'm running into a problem with getting the sessions to work. Flash won't use the existing session info for some reason (Adobe made it that way), so I need to pass the session info to the script and then somehow get it to recognize it. I'm using this Flash method because the uploader shows the actual file upload progress.
In the receiving script, I tried defining JSON and passing the session id in the url (sesskey=whatever), but it didn't work. The response was the nosessionreload string.
Any thoughts on how I can get this to work?
Thanks
01 December 2009, 19:02
Actually, I was passing the sesskey, not the session id.
I think I've found a way to get it to work, though, by encrypting the cookie data, passing it as a string, and then de-encrypting it in the script. That seems to work. I don't think there are any real security issues doing it that way, since the data is encrypted as a single string and I doubt anyone will know what that string does anyway.