To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > Linux/Unix Help

Linux/Unix Help Help with server-side Linux and Unix issues

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-23-2002, 07:02 AM   #1
Rory
Junior Member
 
Join Date: Sep 2002
Location: London
Posts: 5
Angry [A] Linux: sessions not working

I am trying to get sessions working on Linux, Apache 1.3.26 and PHP 4.1.2 (Debian testing).

<?php
session_start();
session_register('hits');
++$hits;
echo $hits;
?>

simply produces the number 1 after reloading the page several times.
The session_id() function registers a valid session code (I can find the session file in my /tmp directory).

Any help hugely appreciated.
Thanks
Rory

Last edited by dotwebbie; 09-23-2002 at 01:52 PM.
Rory is offline   Reply With Quote
Old 09-23-2002, 01:20 PM   #2
hand
Senior Member
 
Join Date: Aug 2002
Location: Carinthia, Austria
Posts: 667
php.ini: check all [Session] parameters
hand is offline   Reply With Quote
Old 09-23-2002, 01:27 PM   #3
dotwebbie
Expert at something . . .
 
Join Date: Aug 2002
Posts: 287
Do you have register_globals on or off? Which version of php by the way?
dotwebbie is offline   Reply With Quote
Old 09-23-2002, 01:42 PM   #4
Rory
Junior Member
 
Join Date: Sep 2002
Location: London
Posts: 5
Thanks for the replies - it appears that the version of php I was running (on powerpc) was broken.

All works fine now!
Rory is offline   Reply With Quote
Old 09-23-2002, 01:51 PM   #5
dotwebbie
Expert at something . . .
 
Join Date: Aug 2002
Posts: 287
Good.
dotwebbie is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 12:53 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.