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 Quote 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 Quote 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> Quote 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 Quote 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). Quote Link to comment https://forums.phpfreaks.com/topic/90459-sessions-being-destroyedhelp-needed/#findComment-463856 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.