Page 1 of 1

Sessions do not work for me in any browser! IE5.5, N4.7+6.0

Posted: Sat Feb 15, 2003 11:11 pm
by 3dron
I've read all the threads on sessions here and I understand EVERYTHING. But even the simplest samples do not work.

I've tried

<?php
session_start();
++$_SESSION['AVAR'];
echo $_SESSION['AVAR'];
?>

And only get the value of 1 over and over.


I've tried
<?php session_start();
echo '<pre>'; print_r($HTTP_SESSION_VARS); echo '</pre>';
$HTTP_SESSION_VARS['test'] = 'value';
?>

and just get and empty array over and over.

It does not work for me. I've tried all my browsers IE 5.5, Netscape 4.7 and 6.0.

HELP, I am literally going nuts.

Ron

Posted: Sun Feb 16, 2003 12:49 am
by lazy_yogi

Code: Select all

session_start(); 
++$_SESSION&#1111;'AVAR']; 
echo $_SESSION&#1111;'AVAR'];
works for me

Although I did have a problem with it when a server i used had PHP version 4.0.3 installed. Enen $HTTP_SESSION_VARS didn't seem to work for me then

That might be the prob
Use <? phpinfo() ?> to check

Otherwise I'm out of ideas

Posted: Sun Feb 16, 2003 12:56 am
by 3dron
phpinfo() reports 4.0.6

Please, any other help?

Posted: Sun Feb 16, 2003 1:39 am
by 3dron
wow, I figured it all out! On my host it doesn't work at all, on one of my clients host it all works.

What do I need to tell my host service to do or turn on?

Ron

Posted: Mon Feb 17, 2003 2:43 am
by twigletmac
You need to tell your host to upgrade their version of PHP if you want it to work using that code.

Mac