Click to See Complete Forum and Search --> : php sessions
nameless_v2
11-26-2003, 04:21 PM
Hey, I just upgraded to slackware 9.1 and now my php sessions wont work. I edited the php.ini file and set session.auto_start to 1. The problem is that when it makes the session cookie, the expiry date on it is 1981......it makes the session no problem and all that, just it is expired. i checked my hwclock and all that and the dates on this box is fine.......any suggestions?
thanks,
Trevor
nameless_v2
11-27-2003, 01:19 AM
ok new question: what does this error mean?
Warning: Cannot modify header information - headers already sent by (output started at /var/www/connect.php:18) in /var/www/login.php on line 37
line 37 of login.php is:
header("location:main.php");
thanks
Suramya
11-27-2003, 02:14 AM
No idea about the first question but you are getting the second error because you are attempting to send header() info after your page has already sent some data to the output. This could be caused by outputting a blank line before the header statement or some other output.
To fix this move the header line to the first line in the file or make sure none of the statements before this line have an output.
Hope this helps.
- Suramya