Re: [PHP] Keeping sessions
- From: stuttle@xxxxxxxxx (Stut)
- Date: Tue, 19 Jun 2007 14:29:26 +0100
Jorge González wrote:
Stut escribió:Jorge González wrote:Ok :)Ok, you both are right but not what I need because web servers is for shared hosting with PHP then each user choose the way to develop their apps. Then one user maybe store sessions in DB but another one not. This should be on Apache or OS side. It's because I talk about ldirector, LVS and so
I know this is a PHP and not an Apache list but maybe someone is doing this with web hosting...
Not only is this a PHP list, but your problem is a PHP problem. I'm shocked. No, really.
Indeed it is.
Apache does *not* get involved in sessions. Not at all.Well the question is I was dealing with an Apache mod_proxy_balanced and plans to use LVS or ldirector for balancing between backend servers. I didn't know about other solutions.
That doesn't change the fact that Apache does not get involved in sessions. Nor does mod_proxy_balanced, LVS or ldirector. Sessions are a PHP entity. The only part of them that leaves the PHP part of the solution is the session identifier which travels in cookies and/or URLs.
Just to clarify, you're building a shared hosting system that load balances all sites across a cluster of web servers? If not, please explain what it is you're actually trying to do.yes, that is, and sessions are important. Users's session must be persistent in all cases: web server down, user jumpig between backend web servers, etc
In that case you need to make sure you explain to your users/customers that they cannot use a custom session handler and expect it to work.
-Stut
--
http://stut.net/
.
- Follow-Ups:
- Re: [PHP] Keeping sessions
- From: Jochem Maas
- Re: [PHP] Keeping sessions
- References:
- Keeping sessions
- From: Jorge González
- Re: [PHP] Keeping sessions
- From: Stut
- Re: [PHP] Keeping sessions
- From: Richard Heyes
- Re: [PHP] Keeping sessions
- From: Stut
- Re: [PHP] Keeping sessions
- From: Jorge González
- Re: [PHP] Keeping sessions
- From: Stut
- Re: [PHP] Keeping sessions
- From: Jorge González
- Keeping sessions
- Prev by Date: Re: [PHP] Keeping sessions
- Next by Date: Re: [PHP] if test
- Previous by thread: Re: [PHP] Keeping sessions
- Next by thread: Re: [PHP] Keeping sessions
- Index(es):
Relevant Pages
- Re: register_globals - turning on
... >>default because of the history of PHP. ... >Sessions contain
persistent data, ... >>paths are a tad confusing as well. ... >In the case
of session data, the web server needs to be able ... (comp.lang.php) - Re: [PHP] Keeping sessions
... Then one user maybe store sessions in DB but another one ... I know this is
a PHP and not an Apache list but maybe someone is ... balances all sites across a cluster
of web servers? ... I agree with Stut that your going to ... (php.general) - Re: Weirdness
... >> as I am getting parse errors. ... Well, oddly enough, I just started
getting issues with sessions ... Apache owns and has rwe on it. ... PHP
is running as an Apache module, ... (php.general) - Session Variables Disappear and Reappear
... New to PHP and I've checked previous posts and haven't seen similar problem. ...
I can also destroy sessions. ... message will disappear showing the "Please Login Form".
... (php.general) - Re: [PHP] Keeping sessions
... shared hosting with PHP then each user choose the way to develop their apps. ...
Then one user maybe store sessions in DB but another one not. ... I know this is a PHP
and not an Apache list but maybe someone is doing this with web hosting... ... Users's session
must be persistent in all cases: web server down, user jumpig between backend web servers, etc
... (php.general)