|
Posted by Mike on 02/22/07 13:39
On 22 Feb, 13:10, Erwin Moller
<since_humans_read_this_I_am_spammed_too_m...@spamyourself.com> wrote:
> Mike wrote:
> > I have had this session issue for months now and I just can't crack
> > it. I have the following 2 scripts...
>
> > aoltest.php
> > *************
> > <?php
> > session_start();
> > $_SESSION[s_check1] = "4";
> > ?>
> > <a href="aoltest3.php">click me</a>
>
> > aoltest3.php
> > **************
>
> > <?php
> > session_start();
> > ?>
> > <body>
> > The session is <?php echo $_SESSION[s_check1];?><br>
> > </body>
>
> > As you can see, what is supposed to happen is you open aoltest.php and
> > click the link and in aoltest3.php the session variable is visable.
>
> > Yes, this works fine, except on users on AOL. Not just an AOL browser
> > but the AOL ISP.
>
> > I am using PHP version 5.0.4 and from my phpinfo below are the
> > settings of the sessions section..
>
> > session
> > Session Support enabled
> > Registered save handlers files user
> > Registered serializer handlers php php_binary wddx
>
> > Directive Local Value Master Value
> > session.auto_start Off Off
> > 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_lifetime 0 0
> > session.cookie_path / /
> > 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 /tmp /tmp
> > session.serialize_handler php php
> > session.use_cookies On On
> > session.use_only_cookies Off Off
> > session.use_trans_sid 0 0
>
> > I've tried changing the session.use_trans_sid and the
> > session.use_cookies using int_set() but to no luck. I can't changed
> > the php.ini as I'm on a shared server.
>
> > I can't beleive I am the only person with this issue. Has anyone seen
> > this problem before and has a solution?
>
> Hi,
>
> I have seen this kind of postings before (regarding AOL).
> The only thing that might be relevant is that AOL users can (and often do)
> switch IP address with every request.
> But since you do not check on IP yourself, and PHP doesn't care, I am not
> very sure that causes the problem.
> Any chance you didn't post the real code (but just samplecode), and DO
> ip-checks in your real program?
>
> Regards,
> Erwin Moller
>
>
>
>
>
> > Many Thanks
>
> > Mike- Hide quoted text -
>
> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
The 2 scripts in my original post are excacly as they are 100%.
I have done another test since but on another server, this one running
PHP version 4.4.3 and the session passed to the page OK.
So, sessions arn't passing when using PHP version 5.0.4 but they do
work with 4.4.3. Anyone know the changes/differences between these 2
versions?
Thanks
Mike
Navigation:
[Reply to this message]
|