Project

General

Profile

Actions

Bug #241

closed

Our current projectId method constantly fails when using multiple tabs

Added by Neil Voss about 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Amber Herold
Category:
-
Target version:
Start date:
03/23/2010
Due date:
% Done:

100%

Estimated time:
Affected Version:
Show in known bugs:
Workaround:

Description

Currently, for almost all myamiweb/processing pages use $_SESSION['projectId'] to set the projectid for the python programs. This works in most cases, but if you have multiple tabs open with different projects, the $_SESSION variable could be set to any one of those projects.

Since all pages have an accurate $expId obtained from the $_GET variable, I propose that we use the function:

$projectId=getProjectFromExpId($expId);
command .= "--project=$projectId";

in our functions.

Are there any problems with this method? Please comment otherwise I will make the change in the near future.

Actions

Also available in: Atom PDF