XUpload - How to redirect after upload and keep session alive (php)

Message
Author
edwinost
Posts: 5
Joined: Apr 23, 2008 11:16 am

How to redirect after upload and keep session alive (php)

#1 Postby edwinost » Apr 23, 2008 11:22 am

Hello!

I'm implementing XUpload into a self scripted php CMS system that uses sessions. How can I get the session to survive the redirect after the upload? I do not use PHPSESSID in the url.

session auto start is off.

I have XUpload Pro 3.0

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Apr 23, 2008 12:59 pm

PHPSESSID is not in URL? How is it tracking? In cookie?

edwinost
Posts: 5
Joined: Apr 23, 2008 11:16 am

#3 Postby edwinost » Apr 23, 2008 1:08 pm

Yes this is the way I start the session:

Code: Select all

session_start();
$_SESSION['user_id'] = $row['ID'];
$_SESSION['username'] = $row['Username'];
$_SESSION['logged_in'] = TRUE;
header("Location: console.php");
Here are the php settings for the site:
http://85.92.147.31/~vinkcat/info.php

edwinost
Posts: 5
Joined: Apr 23, 2008 11:16 am

#4 Postby edwinost » Apr 23, 2008 1:33 pm

Also I am having trouble with the settings, for some reason xupload.js is unable to get the settings cause I get a max_upload_files is not defined error. I tested upload.cgi with settings mode and it did return parameters.

The script is under:

http://85.92.147.31/~testuser/upload_form2.html

http://85.92.147.31/~testuser/cgi-bin/u ... e=settings

Thanx for the help![/url]

edwinost
Posts: 5
Joined: Apr 23, 2008 11:16 am

#5 Postby edwinost » Apr 24, 2008 11:49 am

No one able to help?