473,396 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Blank pages

Forgive me if this is the wrong group to post this in, it's my first post.

I have a web site that uses session variables and cookies. In-house and at
most clients the web sites functions great, exactly how it should behave.

However, at a few sites, the users will get the login page and as soon as
they submit, they get served a page with just the banner image on top and
blank underneath it. The page is two frames, top and bottom with the banner
image on the top. When viewing the source, the bottom page contains
<html></htmlonly. Looking at my PHP scripts, there are no scripts that
could generate that kind of a blank page, it would at least have a <headin
it.

So far what I've found that's different between the sites that work and the
one that doesn't is as follows.

The machine name is SQL1 with an IP address of 10.1.1.100. On this machine
is a web site set up in IIS with an IP address of 10.1.1.150. All of the
users at this site use a url of http://statuspage.cosite.com to get into the
site.

If you use a URL of http://SQL1/statuspage/userlogin.php - everything works
fine.
If you use a URL of http://10.1.1.100/statuspage/userlogin.php - everything
works fine.
If you use a URL of http://statuspage.cosite.com - They get the blank page
after the login page.

I'm thinking it has something to do with domains and cookies but I'm not
sure.

My cookies are set as:

setcookie("UserKey", $UK,$expiretime);

setcookie("PHPSESSID",$_COOKIE["PHPSESSID"],$expiretime);

$expiretime is a variable containing the expiration time of the cookie

Any help would be GREATLY appreciated.

Harry Hambrick

Feb 6 '07 #1
5 2512
Rik
hman <fl******@hotmail.comwrote:
If you use a URL of http://statuspage.cosite.com - They get the blank
page
after the login page.
So, what's the code after the login? We cannot guess this.

Also, check what the servers sends as headers (use Fiddler for MSIE or
LiveHTTPHeaders for FireFox to check those).
My cookies are set as:

setcookie("UserKey", $UK,$expiretime);

setcookie("PHPSESSID",$_COOKIE["PHPSESSID"],$expiretime);

$expiretime is a variable containing the expiration time of the cookie
Cookies are domain specific, but should work if you indeed use
http://statuspage.cosite.com as address of the server that sets the
cookies.
--
Rik Wasmus
Feb 6 '07 #2
After the login page, it just loads the page that sets up the frames which
loads a php page into the bottom frame.

What should I look for in the header? I will find Fiddler to look at it but
not sure what I should your wanting me to look for.

As far as the cookies go, do I need to specify the domain and path in the
cookies for them to work with both the domain and the machine name?

Harry Hambrick
"Rik" <lu************@hotmail.comwrote in message
news:op***************@misant.kabel.utwente.nl...
hman <fl******@hotmail.comwrote:
>If you use a URL of http://statuspage.cosite.com - They get the blank
page
after the login page.

So, what's the code after the login? We cannot guess this.

Also, check what the servers sends as headers (use Fiddler for MSIE or
LiveHTTPHeaders for FireFox to check those).
>My cookies are set as:

setcookie("UserKey", $UK,$expiretime);

setcookie("PHPSESSID",$_COOKIE["PHPSESSID"],$expiretime);

$expiretime is a variable containing the expiration time of the cookie

Cookies are domain specific, but should work if you indeed use
http://statuspage.cosite.com as address of the server that sets the
cookies.
--
Rik Wasmus

Feb 6 '07 #3
Rik
hman <fl******@hotmail.comwrote:

Please don't toppost, and for that matter: do not mulitpost. Crosspost if
you really have to.
Harry Hambrick
"Rik" <lu************@hotmail.comwrote in message
news:op***************@misant.kabel.utwente.nl...
>hman <fl******@hotmail.comwrote:
>>If you use a URL of http://statuspage.cosite.com - They get the blank
page
after the login page.

So, what's the code after the login? We cannot guess this.

Also, check what the servers sends as headers (use Fiddler for MSIE or
LiveHTTPHeaders for FireFox to check those).

After the login page, it just loads the page that sets up the frames
which
loads a php page into the bottom frame.
And what would be in that page? That is the code that fails, and you give
us no clue what it actually does, so we cannot say anything usefull about
it.

Any way to flag something that the script was indeed run, just the output
isn't received?
What should I look for in the header? I will find Fiddler to look at it
but
not sure what I should your wanting me to look for.
Do you really get a 200 OK, or something else? I.e: did you indeed get an
empty page served, or is there an error which prevents sending at all.

Also, what if you enable display_errors && error_reporting(E_ALL)?
>>My cookies are set as:

setcookie("UserKey", $UK,$expiretime);

setcookie("PHPSESSID",$_COOKIE["PHPSESSID"],$expiretime);

$expiretime is a variable containing the expiration time of the cookie

Cookies are domain specific, but should work if you indeed use
http://statuspage.cosite.com as address of the server that sets the
cookies.

As far as the cookies go, do I need to specify the domain and path in the
cookies for them to work with both the domain and the machine name?
Normally, no, server and path default to the current. Users connecting by
one address should have no trouble continuing using that address, and the
cookies it sets. Switching would make your cookies invalid for that
ip/name/server, as they've been set for the other. The browser just won't
send them. You can _try_ to set a cookie for another domain/ip/machine
name, but this would cookie would be declined by the standard settings of
most modern browsers.

--
Rik Wasmus
Feb 6 '07 #4
Forgive me but I don't know what you mean by toppost, multipost and
crosspost. Please explain so I can comply.

There's a whole lot of code on the page that is supposed to be displayed and
has several includes. It would be a lot of code to ask someone to go
through.

I tried putting something in the php code to show me the page was run and
that code did not display. I tried both a javascript alert and also just an
echo from PHP. Neither worked which made me believe that the page was never
being displayed.

No, I received a totally blank page. And when I viewed source, the only
thing there was <html></html>.

I will get back on the customer system and turn or error display and E_ALL
later today or tomorrow morning and see what warnings and errors might be
there.


Feb 6 '07 #5
Rik
hman <fl******@hotmail.comwrote:
Forgive me but I don't know what you mean by toppost, multipost and
crosspost. Please explain so I can comply.
<http://en.wikipedia.org/wiki/Toppost>
<http://en.wikipedia.org/wiki/Netiquette#Usenet_etiquette>
<http://www.blakjak.demon.co.uk/mul_crss.htm>
There's a whole lot of code on the page that is supposed to be displayed
and
has several includes. It would be a lot of code to ask someone to go
through.
Well, then trim it down in a bare-minimum testcase. The least amount of
code that still shows the error is not only usefull for us, but will
probably hold the answer for yourself.
I tried putting something in the php code to show me the page was run and
that code did not display. I tried both a javascript alert
Not to be trusted if output is dubious.
and also just an
echo from PHP.
The point where this echo occurs is of importance. Try to do as the first
action of the script, gradually working down untill it doesn't display
anymore. Then at least you know where the error roughly is. Optionally use
flush() after the echo to make sure it's sent immediately.
I will get back on the customer system and turn or error display and
E_ALL
later today or tomorrow morning and see what warnings and errors might be
there.
Check, it's very likely they will tell you a lot.

--
Rik Wasmus
Feb 6 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: dmcconkey | last post by:
Hi folks, I have a client with four websites. Each site has a contact form that is identical. They all have "required" fields validated through a JavaScript onSubmit() function. Upon validation,...
4
by: Jody Gelowitz | last post by:
I am having a problem with printing selected pages. Actually, the problem isn't with printing selected pages as it is more to do with having blank pages print for those pages that have not been...
2
by: Alex Rybalov | last post by:
Hi, Using IIS 5.0 and sometime some asp pages (absolutely randomly) showing as blank white pages. So far only one way of fixing it - restart whole server. Restarting IIS, or specific web server...
5
by: Usenet User | last post by:
A user informed me that some pages I've created with nested tables are spewing out dozens of blank pages at the end of a print run. No one noticed this for a long time, as printer-friendly files...
1
by: Chandra | last post by:
Hello, We use Vignette V5.6 to display our site. In our CMA site, we have a page which has FRAMESET and in one of the frames we call a ASP page. There seems to be some problem that the frame shows...
6
by: noway | last post by:
I have greated a report and have included a page break in it. The report breaks were it is supposed to but then it creates a blank page between the two pages. Since this report will print out...
1
by: Karen Hill | last post by:
X-No-Archive:yes I have a report that when I view it gives me a blank page after a page with data. For example in the footer, it says I have 2 pages (page 1 of 2), yet when I use the arrow key...
1
by: jj | last post by:
I created a dynamic report and the fields is displayed base on the query. The report contains about 34 fields so if the query has 34 fields, all 34 fields in the report shows up. But if the query...
4
by: Mal Reeve | last post by:
Hello, I have a report that has only 2 levels of grouping. The detail section is simply 1 large block for a memo field. I am finding that on some occasions the report errors and generates...
4
by: ArizonaJohn | last post by:
Hello, The code below works great. The user enters a name into an HTML form, the code looks up a table with that name, and then that table is displayed. I am trying to use pagination with it,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.