TRB Posted February 11, 2008 Share Posted February 11, 2008 This code is for a login page that is now never popping up. We never had a problem with this until the last week or so? It instead shows as a blank page. <?php session_cache_limiter('private, must-revalidate'); session_start(); define('PEAR_DB_PATH','/home/cust1/user1079862/html/oss/lib/PEAR/DB.php'); require_once '/home/cust1/user1079862/html/oss/lib/userValidator.class.php'; $authClass=new userValidator(48); $authClass->validateRequest(); ?> The error messages are: Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cust1/user1079862/html/test2.php:2) in /home/cust1/user1079862/html/test2.php on line 4 Link to comment https://forums.phpfreaks.com/topic/90459-sessions-being-destroyedhelp-needed/ Share on other sites More sharing options...
Wolphie Posted February 11, 2008 Share Posted February 11, 2008 Code for test2.html would help us help you Link to comment https://forums.phpfreaks.com/topic/90459-sessions-being-destroyedhelp-needed/#findComment-463773 Share on other sites More sharing options...
TRB Posted February 11, 2008 Author Share Posted February 11, 2008 Sorry here it is. <?php session_cache_limiter('private, must-revalidate'); session_start(); define('PEAR_DB_PATH','/home/cust1/user1079862/html/oss/lib/PEAR/DB.php'); require_once '/home/cust1/user1079862/html/oss/lib/userValidator.class.php'; $authClass=new userValidator(48); $authClass->validateRequest(); ?> <html> <body> test123 </body> </html> Link to comment https://forums.phpfreaks.com/topic/90459-sessions-being-destroyedhelp-needed/#findComment-463777 Share on other sites More sharing options...
jojo80 Posted February 11, 2008 Share Posted February 11, 2008 make sure there is no "space" or "new line" before all "<?php" in your scripts Link to comment https://forums.phpfreaks.com/topic/90459-sessions-being-destroyedhelp-needed/#findComment-463850 Share on other sites More sharing options...
aschk Posted February 11, 2008 Share Posted February 11, 2008 Do the same for any files you are including as well. Spaces at the END of files also cause this problem (if they're included classes for example). Link to comment https://forums.phpfreaks.com/topic/90459-sessions-being-destroyedhelp-needed/#findComment-463856 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.