[PHP] Problems with sessions

2002-10-30 Thread Tomas Kubis
Hello,
 I have big problem. I upgraded PHP from 4.1.2 to 4.2.3 and my scripts with
doesn´t work. Please help me!
in php.info register globals=On

I have two sripts:

first.php
?
session_start();
$ID = $txtusername . md5(microtime());
session_register('ID');
...

Header(Location: second.php);
?

second.php

?
.
.SELECT uzivatel from uzivatele WHERE md_hash='$ID';
?

In second.php ID is empty; but in previous version of php work it ok??

thanks
Tomas Kubis



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] problem with global vars

2002-10-30 Thread Tomas Kubis
Hello,
 I have big problem. I upgraded PHP from 4.1.2 to 4.2.3 and my scripts with
doesn´t work. Please help me!
in php.info register globals=On

For example I have one script:
first.php
?
global $a;
$a=150;
Header(Location: second.php);
?

second.php

?
echo $a;
echo $GLOBALS['a'];
echo END;
?

Where I have a bug?

Thank you very much

Tomas Kubis



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php