- Upload Suite Overview
- What's New?
- Choosing Upload Technology
- Evaluating Upload Suite
- Upload Suite Editions
- System Requirements
- Installation and Deployment Notes
- ActiveX/Java Uploader
- Where ActiveX/Java Uploader Can Be Useful
- Before You Started with ActiveX/Java Uploader
- ActiveX/Java Uploader Fundamentals
- ActiveX/Java Uploader User Interface
- Getting Started
- Using ActiveX/Java Uploader
- Uploading in ASP.NET
- Uploading in PHP
- Configuring ActiveX/Java Uploader PHP
- Saving Uploaded Files in ActiveX/Java Uploader PHP
- Uploading Folders via ActiveX/Java Uploader in PHP
- Uploading Additional Data in ActiveX/Java Uploader PHP
- Maintaining Sessions and Authentication in ActiveX/Java Uploader PHP
- Enabling Multi-threaded Upload via ActiveX/Java Uploader in PHP
- Debugging PHP ActiveX/Java Upload Scripts
- Uploading in Other Platforms
- Configuring and Handling Upload on Client Side
- Uploading Images
- Customizing User Interface
- Configuring Restriction Rules for Files
- Using ActiveX/Java Uploader at Runtime
- Troubleshooting
- Reference
- HTML5/Flash Uploader
- Licensing Information
- Legal Notices
Maintaining Sessions and Authentication in ActiveX/Java Uploader PHP
If you are going to utilize ActiveX/Java Uploader in non-Internet Explorer browsers (Firefox, Safari, and etc.), you should take care about keeping your session and authentication cookies saved if they are used. The fact is that ActiveX/Java Uploader does not send cookies in output requests in non-Internet Explorer browsers by default and, therefore, session and authentication tickets are lost during the upload. To work around this problem you can employ special facilities provided either by ActiveX/Java Uploader PHP or ActiveX/Java Uploader JavaScript. Let us consider how to use them.
Using ActiveX/Java Uploader PHP Library
If you use ActiveX/Java Uploader PHP, session and authentication information will be automatically passed to the upload request. If you are unfamiliar with ActiveX/Java Uploader PHP, please, see the Quick Start with ActiveX/Java Uploader PHP topic.
Using ActiveX/Java Uploader JavaScript API
If you prefer not to use ActiveX/Java Uploader PHP, then you should add cookies to the upload request manually via the
ActiveX/Java Uploader JavaScript. To do this, use the metadata.cookie
property which accepts cookie in the following format: "cookieName=cookieValue".
var u = $au.uploader({
id: 'Uploader1',
metadata: {
cookie: 'PHPSESSID=<?=$_COOKIE["PHPSESSID"]?>'
}
});
u.writeHtml();