all groups > flash actionscript > march 2006 >
You're in the

flash actionscript

group:

file upload w/ php - can't set session vars on the Mac


file upload w/ php - can't set session vars on the Mac ShazamFu
3/31/2006 8:12:01 PM
flash actionscript: Hi, I've got a file upload module that works great on the PC. It allows the
user to upload .jpgs. It calls a PHP script to do the actual uploading. After
the uploading is complete, the user is redirected to a page where thumbnails
are displayed of the images that they just uploaded.

Like I said, it works great on the PC w/ IE. It doesn't work on the Mac,
though. I'm testing it in Safari. The image files DO upload. That part
works. But in the php script, I'm pushing each file name into a session array
so that I'll be able to read the filenames on the next page. I'm using session
variables because the page is called repeatedly & I need something that will
persist after the uploads are complete & you've jumped to the next page.

Is this even a Flash question? I'm not sure. But I'm trying to figure out
why the array is empty when I upload on a mac.
Re: file upload w/ php - can't set session vars on the Mac DMennenoh
4/1/2006 12:00:00 AM
No, this is really a PHP question - unless you do it a different way. I'm
not sure why your $_SESSION array would be empty on the mac, but did you be
sure to call session_start() as the very first thing on the page?

--
Dave -
Adobe Community Expert
www.blurredistinction.com
www.macromedia.com/support/forums/team_macromedia/

AddThis Social Bookmark Button