IE + IA64 + session variables = doesn't work

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
JJunkin
Forum Newbie
Posts: 9
Joined: Fri Oct 15, 2004 9:36 am

IE + IA64 + session variables = doesn't work

Post by JJunkin »

I am remotely connecting to a Linux IA64 machine through IE and I have found my session variables do not work. It owrks in Mozilla but not IE. Can anyone help?

Thanks in advance,
Jason
User avatar
dethron
Forum Contributor
Posts: 370
Joined: Sat Apr 27, 2002 11:39 am
Location: Istanbul

Post by dethron »

can you give us any address, so that we can try?
JJunkin
Forum Newbie
Posts: 9
Joined: Fri Oct 15, 2004 9:36 am

Post by JJunkin »

I wish I could. We're behind a pretty secure firewall. Is there any other way to use globals variable besides session_start and $_SESSION?

Thanks again
User avatar
dethron
Forum Contributor
Posts: 370
Joined: Sat Apr 27, 2002 11:39 am
Location: Istanbul

Post by dethron »

have you tried to use a cookie?
User avatar
dethron
Forum Contributor
Posts: 370
Joined: Sat Apr 27, 2002 11:39 am
Location: Istanbul

Post by dethron »

And (i am sure you did but i want to ask to be sure), have you tried something very simple like below?

Code: Select all

<?php
    session_start();
    $_SESSION['test'] = "test";
    echo $_SESSION['test'];
?>
JJunkin
Forum Newbie
Posts: 9
Joined: Fri Oct 15, 2004 9:36 am

Post by JJunkin »

Hi Dethron,

Yeah, that's a simple version of what my code looks like. When I browse to another page and call $_SESSION["test"] - it's null or empty.

I'm trying the cookie now. I'll let you nkow - but I would rather not use cookies.
User avatar
dethron
Forum Contributor
Posts: 370
Joined: Sat Apr 27, 2002 11:39 am
Location: Istanbul

Post by dethron »

JJunkin wrote:When I browse to another page
Does the other page contain session_start(); ?
JJunkin
Forum Newbie
Posts: 9
Joined: Fri Oct 15, 2004 9:36 am

Post by JJunkin »

yep. It works on Mozilla. I also have tried $GLOBALS - doesn't work.

Thanks
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Put full blown error reporting on please...

Could be an issue creating the session files on the IA64 machine.

Code: Select all

ini_set('display_errors', 1);
error_reporting(E_ALL);
User avatar
dethron
Forum Contributor
Posts: 370
Joined: Sat Apr 27, 2002 11:39 am
Location: Istanbul

Post by dethron »

JJunkin wrote:It works on Mozilla.
It seems session is working properly :(
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Session sets cookies as well as reading session files on the server (well of course it depends upon your ini configuration) so if the browsers are configured differently you may find one working but not the other - I've done it myself using IIS when i was just a lil n00b... error reporting revealed that the session dir did not have the appropriate permissions.

I'm probably wrong but putting error_reporting on is always a good start anyway ;)
User avatar
dethron
Forum Contributor
Posts: 370
Joined: Sat Apr 27, 2002 11:39 am
Location: Istanbul

Post by dethron »

you are right jedi d11wtq :)we all(i assume) love errors when they come with in reports :)
Post Reply