session problem (i think)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tennis_blues
Forum Newbie
Posts: 21
Joined: Sun Oct 20, 2002 8:30 am

session problem (i think)

Post 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!
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

is she the only one having this problem?
tennis_blues
Forum Newbie
Posts: 21
Joined: Sun Oct 20, 2002 8:30 am

Post by tennis_blues »

yes, i just had someone else log in, and she was fine
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

then you might want to look at the "privacy options" in mcaffee.... meaby that throws away cookies?
hokiecsgrad
Forum Newbie
Posts: 17
Joined: Fri Oct 22, 2004 2:55 pm

Post 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.
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post 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?
tennis_blues
Forum Newbie
Posts: 21
Joined: Sun Oct 20, 2002 8:30 am

Post 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
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post by rehfeld »

theres prob something like this in the code

Code: Select all

<?php

session_start();

?>
<html>
<head>
<?php

if (!$_SESSION['var']) {
    exit;
}
?>
tennis_blues
Forum Newbie
Posts: 21
Joined: Sun Oct 20, 2002 8:30 am

Post 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]
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post by rehfeld »

thats really odd....


have you tried setting

error_reporting(E_ALL);

???? that might help you find it
Post Reply