Jump to content

Sessions being destroyed???...help needed!


Recommended Posts

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

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>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.