Ask a Question related to PHP Development, Design and Development.
-
Thomas Hochstetter #1
session across satelite windows
Hi again.
I am having a problem with session variables spanning over different
windows.
What I am doing is to supply links in an admin interface that open satellite
windows, opened via JS. The window scripts check for a variable to be
present ($_SESSION[]). I am doing this so that the scripts cannot be called without
being successfully logged in.
The problem is this:
Opening the first window is fine, but when closed (with window.close()) and
tried to reopen, the $_SESSION variable test works out to be false. Why?
I am passing the session number through to the windows (as a variable called
$sesi). I checked the session folder, and it seems that the session is not
destroyed. All scripts call session_start(). What is happening? I know that
the manual says that we have to send the session number to the next pages.
Does it have anything to do with JS (I doubt).
Help is appreciated.
Below you find the calling snipps:
[snip]
#
## Check for valid session variable
#
session_start();
require("../../scripts/generic/major.class.php");
$gsql = new sql;
if ($_SESSION['uid'])
{
…
#
## open the window with js
#
… onclick="openwin('update','<?php echo $tid;?>','<?echo
session_id();?>','<?php echo $uid;?>','430','480','cwin','no','no')" />
function openwin(type,id,sess,uid,h,w,win,loc,scrl){
window.open("xtemp/"+type+".php?sesi="+sess+"&id="+id+"&uid="+uid+"", win,"height="+h+",width="+w+",left=0,top=0,alwaysR aised=yes,directories=no,dependent=yes,location="+ loc+",status=no,titlebar=no,resizable=no,menubar=n o,scrollbars="+scrl+"");
}
Thomas
--
+++ GMX - Mail, Messaging & more [url]http://www.gmx.net[/url] +++
Jetzt ein- oder umsteigen und USB-Speicheruhr als Prämie sichern!
Thomas Hochstetter Guest
-
#25551 [Opn->Bgs]: Session data loss when accessing session from multiple windows.
ID: 25551 Updated by: sniper@php.net Reported By: brett at realestate-school dot com -Status: Open +Status: ... -
#25551 [Bgs->Opn]: Session data loss when accessing session from multiple windows.
ID: 25551 User updated by: brett at realestate-school dot com Reported By: brett at realestate-school dot com -Status: ... -
#25551 [NEW]: Session data loss when accessing session from multiple windows.
From: brett at realestate-school dot com Operating system: Linux - Red Hat PHP version: 4.3.1 PHP Bug Type: Session related... -
BUG: CGI.Session on Windows
If a newbie tries to get CGI Sessions working, he will run in the following bug. No code example that i have seen so far starts with supplying the... -
Starband Satelite network
After installing Starband satelite software my network doesn't work proper. I use 4 different network profile depending on my location. Static...



Reply With Quote

