Hello all.
Recently I changed server computer and set new web server for developement purposes.
My sessions are stored in an mySQL table.
Every page on this developement web starts with two following lines:
This means that session does have continuity.
And when I'm testing it (and working) locally (from same computer), everything works smooth (one session is opened per one surf thru site).
PROBLEM
But when I test it from another computer via internet, every page that opens -> opens another session with it's session data.
Session_id remains same while session_created and session_active changes.
This virtually means that whenever sess_init is invoked in code, it opens another session with same number.
Not to mention that sess_data variables are dropped (or fragmented to session rows) and therefore unusable.
Can anyone pinpoint me possible solution? Perhaps php.ini setting problem? Perhaps the fact that it's unnatural php environment -> IIS6.0 on winXP?
this is php.ini session setting:
Can anyone see where's problem? thanks!
Recently I changed server computer and set new web server for developement purposes.
My sessions are stored in an mySQL table.
Every page on this developement web starts with two following lines:
Code:
if(file_exists('C:/includes/phpSecureSessions.inc')) {include 'phpSecureSessions.inc';}
sess_init('localhost','sessions','root','pwd','1');
This means that session does have continuity.
And when I'm testing it (and working) locally (from same computer), everything works smooth (one session is opened per one surf thru site).
PROBLEM
But when I test it from another computer via internet, every page that opens -> opens another session with it's session data.
Session_id remains same while session_created and session_active changes.
This virtually means that whenever sess_init is invoked in code, it opens another session with same number.
Not to mention that sess_data variables are dropped (or fragmented to session rows) and therefore unusable.
Can anyone pinpoint me possible solution? Perhaps php.ini setting problem? Perhaps the fact that it's unnatural php environment -> IIS6.0 on winXP?
this is php.ini session setting:
Code:
[Session]
session.save_handler = user
;session.save_path = "/tmp"
session.use_cookies = 1
;session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = 0
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
:session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 1
session.hash_bits_per_character = 5
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
Can anyone see where's problem? thanks!