Posted by Ivan // INSIDE on 10/10/81 11:19
Hello !
I have problems with my session ...
Here is the code :
session_start();
session_name("id");
session_cache_expire(15);
if (!$id)
{
$id = session_id(md5(uniqid(rand(), true)));
session_register("$id");
}
else {
$id = session_id("$id");
// 0dio
$_SESSION['plan'] = '$plan';
$_SESSION['os'] = '$os';
// 1dio
$_SESSION['domenat'] = $_GET['domain'];
// 2dio
$_SESSION['domena'] = '$domena';
$_SESSION['period'] = '$period';
$_SESSION['nacin'] = '$nacin';
$_SESSION['ime'] = '$ime';
$_SESSION['org'] = '$org';
$_SESSION['mb'] = '$mb';
$_SESSION['adresa'] = '$adresa';
$_SESSION['posta'] = '$posta';
$_SESSION['grad'] = '$grad';
$_SESSION['tel'] = '$telefon';
$_SESSION['mob'] = '$mobitel';
$_SESSION['email'] = '$email';
$_SESSION['kako'] = '$kako';
$_SESSION['napomena'] = '$napomena';
// IP adresa
$_SESSION['enduserip'] = $REMOTE_ADDR;
$enduserip = $_SESSION['enduserip'];
}
Now problem is when I wish to print out some $_SESSION variable , let's
say $_SESSION['plan'] , I just get this output :
"$plan" and it shoud be anything else.
Now If I but "bla bla" , and not variable $plan in
$_SESSION['domena'] = 'bla bla';
Then prints out : bla bla
So bassicaly , it woun't get something from form and put it in $_SESSION
field.... and ideas ?
Ivan
[Back to original message]
|