Page 1 of 1

login,session

Posted: Thu Aug 18, 2005 1:48 am
by ija
Hi,
I developed a system with login process and session handling.In main system directory, there have several sub system directory.All the pages are controlled by session.The login+session process are success but when i click to go to page in subsystem,it goes to login page..I used 2 different database..and the server is OES Server Sles 9..
:(

Start session

Posted: Thu Aug 18, 2005 2:17 am
by AnarKy
HI,

You may have to start the session again in the subsystem.
We may be able to help you a bit more if you showed us the
login script and the page that sends you back to the login page.
See session_start() below
http://www.php.net/manual/en/function.session-start.php

Posted: Thu Aug 18, 2005 7:52 am
by feyd
it would sound like your cookie may be getting set improperly, what's the directory structure look like?

Posted: Thu Aug 18, 2005 8:01 am
by sticksys
maybe you didn't put session_start(); on the top of the page.


and i guess that your session look like:

$_SESSION['some'] = true;

Fatal Error: undefined function session_start()

Posted: Mon Aug 22, 2005 9:11 pm
by ija
Hi.

I've put function session_start() on the beginning of every page.And after i run the system in linux environment (OES SUSE LINUX SLES 9),there has an error ( Fatal Error: Undefined function session_start()...). I also run the system on window environment and it success. So, can you help me;(

Posted: Mon Aug 22, 2005 9:28 pm
by feyd
your host has session handling disabled.

Posted: Mon Aug 22, 2005 10:44 pm
by ija
how to make the host enable session handling?
Which file control it?
I use OES SERVER SLES 9

For ur info, for system development i use XAMPP SOFTWARE(APACHE2, PHP 5.0.4,MYSQL 4.1.13) in Linux environment and successfully running. On OES SERVER SLES 9 it use APACHE2, PHP 4 ,MYSQL 4.1.13.Is that because of different version of PHP language make the system fail running on OES SERVER SLES 9.