Page 1 of 1

session problem (i think)

Posted: Tue Oct 26, 2004 11:14 am
by tennis_blues
hi all,
i have a weird problem.

I use sessions on my site for people to login....and have changed nothing on the site for at least a month.


this morning someone calls me, who logs in at least once a day everyday and says she is only getting a blank page (which when you view source, she is getting some text, but mid-sentence in the <head> stuff, it cuts off (so her result is a blank page)

her problem happens only she is accessing a page that uses sessions.....the page starts with:

session_cache_limiter('none');
session_start()

this morning, she updated her mcafee software, so maybe that has something to do with it, but i am not sure what?

also, i checked her cookies under internet options, and she is allowing all cookies from 1st and 3rd parties.....

does anyone have any ideas?

thanks so much for your help!

Posted: Tue Oct 26, 2004 11:31 am
by timvw
is she the only one having this problem?

Posted: Tue Oct 26, 2004 11:33 am
by tennis_blues
yes, i just had someone else log in, and she was fine

Posted: Tue Oct 26, 2004 11:50 am
by timvw
then you might want to look at the "privacy options" in mcaffee.... meaby that throws away cookies?

Posted: Tue Oct 26, 2004 2:19 pm
by hokiecsgrad
Strangely enough, this could very probably be a virus protection setting. A very similar problem was just reported and verified by Norton. Disabling certain aspects of Norton's "security" fixes the problem. Unfortunately, I don't know what those problems are, just that they exist.

Posted: Tue Oct 26, 2004 3:08 pm
by rehfeld
maybe send a p3p header along w/ the cookie? that can often get browsers to accept cookies if they have security settings tightened


but still, you need to look at your code, why is it failing? does the code completely not support users w/ cookies diabled?

Posted: Wed Oct 27, 2004 1:15 pm
by tennis_blues
well, it turns out she disabled her privacy service on mcafee and then enabled it again, and everything is fine and loading properly

so, i am not sure if i need to do anything else.....i dont really understand why a small part of the page would load and not the rest.....seems like it should be all or nothing

Posted: Wed Oct 27, 2004 2:21 pm
by rehfeld
theres prob something like this in the code

Code: Select all

<?php

session_start();

?>
<html>
<head>
<?php

if (!$_SESSION['var']) {
    exit;
}
?>

Posted: Thu Oct 28, 2004 6:49 am
by tennis_blues
patrikG | Help us, help you. Please use

Code: Select all

and

Code: Select all

tags where approriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
no, there is nothing like that unfortunately.  

and the weird thing is, the page stops loading in mid-sentence.

the code where it stops is:

Code: Select all

newImage("<?=htmlspecialchars($imgpath)?>/images/<?=htmlspecialchars($LeagueID)?>/home1.gif");
    newImage("<?=htmlspecialchars($imgpath)?>/images/<?=htmlspecialchars($LeagueID)?>/home2.gif");
    newImage("<?=htmlspecialchars($imgpath)?>/images/<?=htmlspecialchars($LeagueID)?>/captcrnr1.gif");
    newImage("<?=htmlspecialchars($imgpath)?>/images/<?=htmlspecialchars($LeagueID)?>/captcrnr2.gif");
    newImage("<?=htmlspecialchars($imgpath)?>/images/<?=htmlspecialchars($LeagueID)?>/roster1.gif");
    newImage("<?=htmlspecialchars($imgpath)?>/images/<?=htmlspecialchars($LeagueID)?>/roster2.gif");
    newImage("<?=htmlspecialchars($imgpath)?>/images/<?=htmlspecialchars($LeagueID)?>/schedule1.gif");
    newImage("<?=htmlspecialchars($imgpath)?>/images/<?=htmlspecialchars($LeagueID)?>/schedule2.gif");
    newImage("<?=htmlspecialchars($imgpath)?>/images/<?=htmlspecialchars($LeagueID)?>/results1.gif");
    newImage("<?=htmlspecialchars($imgpath)?>/images/<?=htmlspecialchars($LeagueID)?>/results2.gif");


but all that prints out is:
newImage("/images/3/home1.gif");
newImage("/images/3/home2.gif");
newImage("/images/3/captcrnr1.gif");
newImage("/images/3/captcrnr2.gif");
newImage("/images/3


it seems like if the first 4 lines are ok, then the rest would be too?

patrikG | Help us, help you. Please use

Code: Select all

and

Code: Select all

tags where approriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]

Posted: Thu Oct 28, 2004 1:04 pm
by rehfeld
thats really odd....


have you tried setting

error_reporting(E_ALL);

???? that might help you find it