Hello everybody,
I have weird situation with starting session on my site. Locally, everything works fine, but on remote server, when I try to login, session is not started. Actually, when I put a message to see session id, it was not empty, but $_SESSION variables are empty.
Here is my code:
Code:<?php session_start(); session_regenerate_id(); $logovan = $_GET['ime']; $proizvod = $_GET['proizv']; if ($logovan != '') { $_SESSION['sesija_sesname'] = session_id(); $_SESSION['sesija_loguser'] = $logovan; $_SESSION['sesija_tekuca_kat'] = 0; $_SESSION['sesija_artikal'] = $proizvod; $_SESSION['sesija_korpa'] = ''; $_SESSION['sesija_ukupna_cena'] = 0; $_SESSION['sesija_ukupno_artikala'] = 0; if ($proizvod == '') {go page1} else {go page2} } ?>
Any help would be apriciated.
Tnx in advance,
Nati



.
.
) session variables should be declared as $_SESSION['blabla'] once and lately could be referenced to as $blabla. That worked fine at my local enviroment. 


Bookmarks