login,session

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ija
Forum Newbie
Posts: 11
Joined: Wed Aug 03, 2005 11:14 pm

login,session

Post 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..
:(
User avatar
AnarKy
Forum Contributor
Posts: 119
Joined: Tue Nov 02, 2004 1:49 am
Location: South Africa

Start session

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

it would sound like your cookie may be getting set improperly, what's the directory structure look like?
sticksys
Forum Commoner
Posts: 33
Joined: Thu Aug 18, 2005 3:23 am
Location: Isreal
Contact:

Post 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;
ija
Forum Newbie
Posts: 11
Joined: Wed Aug 03, 2005 11:14 pm

Fatal Error: undefined function session_start()

Post 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;(
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

your host has session handling disabled.
ija
Forum Newbie
Posts: 11
Joined: Wed Aug 03, 2005 11:14 pm

Post 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.
Post Reply