Hi, hoping someone could shed some light.
Have a customer who installed classifieds php script on win2 & can't logon to do more configuration cause sessions are not sticking. here is the sessions script:
session.php
<?
session_start();
session_register("softbiz_b2b_adminid");
session_register("softbiz_b2b_adminname");
//session_register("ID");
//session_register("ID");
?>
& logincheck.php
<?php
include "session.php";
if (!isset($_SESSION["softbiz_b2b_adminid"]) && !isset($_REQUEST["tmp"]) )
{
header("Location: ". "index.php?msg=" .urlencode("You must be logged to access this page!") );
die();
}
?>
If i remove
if (!isset($_SESSION["softbiz_b2b_adminid"]) && !isset($_REQUEST["tmp"]) )
{
header("Location: ". "index.php?msg=" .urlencode("You must be logged to access this page!") );
die();
}
from logincheck.php than i can access admin area, which tells me its the session not being handled/stored correctly by server.
I have played with a custom php.ini with no luck(I'm new with php)
Anyone had similar issue or could provide help appreciated.
Have a customer who installed classifieds php script on win2 & can't logon to do more configuration cause sessions are not sticking. here is the sessions script:
session.php
<?
session_start();
session_register("softbiz_b2b_adminid");
session_register("softbiz_b2b_adminname");
//session_register("ID");
//session_register("ID");
?>
& logincheck.php
<?php
include "session.php";
if (!isset($_SESSION["softbiz_b2b_adminid"]) && !isset($_REQUEST["tmp"]) )
{
header("Location: ". "index.php?msg=" .urlencode("You must be logged to access this page!") );
die();
}
?>
If i remove
if (!isset($_SESSION["softbiz_b2b_adminid"]) && !isset($_REQUEST["tmp"]) )
{
header("Location: ". "index.php?msg=" .urlencode("You must be logged to access this page!") );
die();
}
from logincheck.php than i can access admin area, which tells me its the session not being handled/stored correctly by server.
I have played with a custom php.ini with no luck(I'm new with php)
Anyone had similar issue or could provide help appreciated.