You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Sander Smeenk <ss...@freshdot.net> on 2001/12/27 21:54:44 UTC

Apache 2.0.28 and PHP4.1's start_session() call.

Hi,

** This has also been posted on php-install mailinglist **

I'm using Apache 2.0.28 on my server to serve webpages, and recently
wanted to use 'Squirrelmail', a PHP-based online mail-reader.
I installed php 4.1.0 and got everything set up right for Squirrelmail
to work. And then this happens:

When I visit the site with browsers like lynx, w3m or links, I get the
important PHPSES cookie set and can normally log in and read mail, but
when I try visiting the site with Mozilla or Opera the PHPSES cookie 
won't be set, so Squirrelmail won't allow me in, because it doesn't know
who I am.

Now I don't know if this is PHP related or Apache2 related, but I think
it's Apache2 because of this 'test script' I made:

-----------------------------------------------------------------------
<?php

session_set_cookie_params (0, '/');
session_start();
setcookie('blaat', 'urf', time()+3600, '/');
echo "<BODY><CENTER>php test</CENTER></BODY>"

?>
-----------------------------------------------------------------------

As located on http://www.smeenk.biz/phptest.php.

The script parses, compiles and runs fine, the output 'php test' shows
up, and I get the blaat=urf cookie in every browser I use. But the
PHPSES cookie only shows when using text-based browsers. And that is
what puzzles me.

Can someone tell me why the PHPSES cookie only shows up with text-based
browsers, and not when using GUI-browsers?

Kind regards,
Sander Smeenk.

-- 
| She doesn't know what she's missing...
| 1024D/08CEC94D - 34B3 3314 B146 E13C 70C8  9BDB D463 7E41 08CE C94D

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Apache and PHP4 session management

Posted by Fred Koschara <wf...@L5Development.com>.
At 10:51 PM 1/3/02 -0800, chella durai <ch...@yahoo.com> wrote:
>Hi,
>I have implemented session management using PHP and
>apache server. When i press the back button in the
>browser, the previous page is expiring.
>
>Please let me know if there is any solution for this
>problem.
>
>thanks in advance,
>Chella

This is a PHP problem, not well documented in their manual.  See the user 
notes at http://www.php.net/manual/en/function.session-cache-limiter.php

     "Problems with missing data from POST forms (Netscape 4) can be fixed by
      setting:
      session.cache_limiter = private, must-revalidate
      in the configuration file (or by calling this function)."

-- Fred Koschara, President
    L5 Development Group
________________________________________________________________________
For private sector (commercial) space development, visit
	http://www.L5Development.com
L5 Software Development - "out of this world" sites and software
	http://www.L5Software.com
StudioLines.com - Your place on the Internet for local music
	Music, feedback, connections. Tap the power of the Internet!
	http://www.StudioLines.com
How much did your last traffic ticket cost you?
	http://www.StopHighwayRobbery.com
ThmIndxr(tm), the *only* HTML thumbnail/indexer you need!
	http://www.L5Software.com/go?ThmIndxr
wCapLock(tm), makes CapsLock work like it does on a typewriter
	http://www.L5Software.com/go?wCapLock
KeywordGo(tm), provides keyword access to your popular pages
	http://www.L5Software.com/go?KeywordGo
BannerAds(tm), join multiple affiliate programs with one banner
	http://www.L5Software.com/go?BannerAds
My personal Web page is http://www.L5Development.com/wfredk
	Stop by some time!


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Apache and PHP4 session management

Posted by chella durai <ch...@yahoo.com>.
Hi,
I have implemented session management using PHP and
apache server. When i press the back button in the
browser, the previous page is expiring.
 
Please let me know if there is any solution for this
problem.

thanks in advance,
Chella


__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org