Page 1 of 1
[SOLVED] session not passing...
Posted: Tue Jun 22, 2004 9:45 pm
by Illusionist
I'm using sessions on my page and i've just noticed that when i use JavaScript to open a new window, the session doesn't pass through. Does anyone know how I can pass the session to a new page??
Posted: Tue Jun 22, 2004 10:01 pm
by qads
try useing SID in the url? i never had this problem my self though.
Posted: Tue Jun 22, 2004 10:03 pm
by Illusionist
Thats the weird thing! This hasn't ever happened to me before either, until now

Posted: Tue Jun 22, 2004 10:08 pm
by feyd
it may be a problem of when and how you are asking the javascript window to open..
Posted: Tue Jun 22, 2004 10:09 pm
by qads
where is the page your opening? in the same dir? or another? that might cos of it...might wanna check for session_start(); at the top of the page aswell....it can happen to anyone

Posted: Tue Jun 22, 2004 10:13 pm
by Illusionist
I have the open window in a function and then i call it :
And this is the way i've done it before and it worked... But now it isn't

Posted: Tue Jun 22, 2004 10:15 pm
by Illusionist
Its the same page... I open the same page in another window, but displaying different information... And the sessions work fine on the normal page.
Posted: Tue Jun 22, 2004 10:22 pm
by Illusionist
Could there be a setting in php.ini that would control this??
Posted: Tue Jun 22, 2004 10:23 pm
by feyd
what are your session cookie settings, the url of the "normal" page, and popup page used?
Posted: Tue Jun 22, 2004 10:26 pm
by Illusionist

cookie lifetime was 0! i changed to 999 and it works great now! lol thanks feyd!
Posted: Tue Jun 22, 2004 10:29 pm
by feyd
solved-ish
you don't need to edit your post.. we have a button for it

Posted: Tue Jun 22, 2004 10:33 pm
by Illusionist
Am I blind? Because i can't seem to find the button! Or is it just for mods? hehe

Posted: Tue Jun 22, 2004 10:38 pm
by feyd
Only with the powers of gods, er mods.

Posted: Tue Jun 22, 2004 11:07 pm
by Illusionist
ahh!

ok ok!