Jump to content
php.lv forumi

session ()


johanes

Recommended Posts

Pārlādējot lapu vai pēc kādiem 3 postiem sesija pazūd :(

 

if ($log=="new") 
{               
       session_register('sesid');        
$sesid=session_id();
session_register('name');
$_SESSION["name"] = "$name";
$_SESSION["l"] = "$l";
session_register('l');
$_SESSION["r"] = "$r";
session_register('r');
}

Link to comment
Share on other sites

kur ir session_start()?

 

skatos tev jau php ir tiiri svesh.

$_SESSION["name"] = "$name";   // sheit peedinjas var arii nelikt pie "$name".
session_register('name');  // pasham nav gruuti, ka biaj " un tad paraadaas '?
// shajaa gadiijumaa manupraat var iztikt bez session_register() f-jas.

Link to comment
Share on other sites

×
×
  • Create New...