PHP Session

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

hi all,

I am using Ubuntu hoary, kernel 2.6.10-5-386, apache 2, php 4 with th
efollowing configuraton:

session.save_handler = files
session.save_path = /tmp
session.use_cookies = 1 = PHPSESSID
session.auto_start = 1
session.cookie_path = /tmp
session.cookie_domain =
session.serialize_handler = php
session.gc_divisor     = 100
session.gc_maxlifetime = 1440
session.bug_compat_42 = 1
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
url_rewriter.tags =
register_globals = On

Apache is running on port 2139.

register_globals is on just because session was not working, but when I
changed, when i access my server from it self (localhost) the session
When I try to access the server from the web, session does not work

Please, somebody help me.

Re: PHP Session

  > register_globals is on just because session was not working, but when I
Quoted text here. Click to load it

Are you attempting to access the session variables by utilizing
$_SESSION['varname']?  Because if you are not then that is where your
problem is.  If the sessions are working with register globals that
means the session variable should be filled when you turn it off.

Remember when register variables is off accessing variables from GET,
POST, COOKIE or SESSION must be in the form of:

The best way to debug it is doing a vardump on the variables.


Re: PHP Session

Quoted text here. Click to load it

check permissions for dir, where are session temp files

Best regards,
Polzunov Sergei
[ICQ: #204206246]

Site Timeline