Session is not initializing

 Question:

 


I can't get PHP session working on one of the windows servers.

on login page i have added the following code

Code:
<?php session_start();

  $loggedin=True;

  Session_regiser("loggedin");

?>


Inside pages i tried


Code:
<?
   echo "Logged Status:".$_SESSION['loggedin'];
?>


Have you come across this problem before? Please help.




 Answers:
 
Did you check your PHP.ini session configuration? You need to check whether session is set to be enabled in PHP.ini file.



Commentaires

Posts les plus consultés de ce blog

XAJAX with PHP – The future of web development

XAJAX with PHP – The future of web development

Database connection pooling in ADO.Net