Forum Moderators: coopster

Message Too Old, No Replies

When using SESSION, it gives BLANK Page.HELP!

PHP 5.2, MySQL, Apache2 on Win XP

         

gulerse

11:02 am on Jan 29, 2007 (gmt 0)

10+ Year Member



Hi to everyone,
I installed PHP 5.2, MySQL (latest version) and Apache 2 on Win XP.
it works OK except SESSIONS
when I have a file beginning like this, it gives a blank page

session_start();
if (isset ($_SESSION['loggedin']) && isset ($_SESSION['time']))
{

I think it must be about php installation.and yes it works on other servers, but on my pc, it gives a blank page.

session configs @ php.ini
Directive Local Value Master Value
session.auto_start On On
session.bug_compat_42 Off Off
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_httponly Off Off
session.cookie_lifetime 0 0
session.cookie_path no value no value
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 5 5
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path C:\Program Files\PHP\sessions C:\Program Files\PHP\sessions
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 0 0

Can anyone help?
Thannks for reading...

eelixduppy

12:13 pm on Jan 29, 2007 (gmt 0)



Are you getting anything in your error log? Seems to be a fatal error of some sort.

gulerse

1:15 pm on Jan 29, 2007 (gmt 0)

10+ Year Member



sorry, where does it save the logs? :)

eelixduppy

1:22 pm on Jan 29, 2007 (gmt 0)



the php.ini parameter error_log will give you the location of the log file. It changes from server to server. You may also be able to turn up error_reporting [us2.php.net].

gulerse

2:36 pm on Jan 29, 2007 (gmt 0)

10+ Year Member



Thanks, looking at the error logs of apache, I understood the problem, it wasnt related to php installation or session, it was a space at the end of sessions variables making the problem.
Thanks, logs make sense:)