List Info

Thread: Re: Weird session behavior on submit block form




Re: Weird session behavior on submit block form
country flaguser name
Germany
2007-02-19 04:18:37
No, the cookies aren't stored in the database. But neither
are they 
stored on the filesystem of the server (in Drupal or
otherwise).

In case you are wondering about this directive in php.ini:

; The path for which the cookie is valid.
session.cookie_path = /

I don't think that this is a path on the file directory of
the server. I 
know that my apache doesn't have read or write access to /.

You can find all the information that gets stored on the
server about a 
user's session in the sessions database table.

cheers,

Robert

Carl Mc Dade wrote:
> I was of the understanding that drupals "logged
sessions" and php 
> "session cookies" were two different things.
Drupal actually copies 
> the session cookie into the database?
>  
> Carl Mc Dade
> ____________________________
> Web Developer
>
>
>  
>
>
> ----- Original Message ----
> From: Bčr Kessels <berwebschuur.com>
> To: developmentdrupal.org
> Sent: Monday, February 19, 2007 10:06:30 AM
> Subject: Re: [development] Weird session behavior on
submit block form
>
> Op maandag 19 februari 2007 09:28, schreef Carl Mc
Dade:
> > Appropo dev stuff. Does the Drupal installer check
the session 
> directory?
> > Several other CMS installers like Joomla do this.
>
> AFAIK Drupal will always store a session in the
database.
>
> Bčr
>
>
>
------------------------------------------------------------
------------
> Everyone is raving about the all-new Yahoo! Mail beta.

> <http://us.rd.yahoo.com/evt=422
97/*http://advision.webevents.yahoo.com/mailbeta>


-- 
* * * * *
Lullabot's First Ever Advanced Workshops Are Here!
Drupal API & Module Building - Advanced Drupal Themeing
April 9th-13th - Providence, RI
Early Bird Discounts Available Now
http://www.lullabot.
com/training
* * * * *


Re: Weird session behavior on submit block form
country flaguser name
Sweden
2007-02-19 08:58:43
Ok,

Then we are on the same page. I was trying to help him solve the problem with getting a PHP error message. Going by what is being provided in the post there was not really a problem with Drupal but the server. The most likely cause being that the PHP session which comes before Drupal is trying to write to a path that either does not exist or is not writable. Perhaps not allowing Drupal to copy/read the proper session id.

What I have done is change my php.ini session path to something other than the default temp. This is so that I can look in the database and on the server and compare the session ids. When I did this things started working again. Of course this may not be the same case here. But it is something to look at and to start with.

Robert Douglass <robrobshouse.net> wrote:
No, the cookies aren't stored in the database. But neither are they
stored on the filesystem of the server (in Drupal or otherwise).

In case you are wondering about this directive in php.ini:

; The path for which the cookie is valid.
session.cookie_path = /

I don't think that this is a path on the file directory of the server. I
know that my apache doesn't have read or write access to /.

You can find all the information that gets stored on the server about a
user's session in the sessions database table.

cheers,

Robert

Carl Mc Dade wrote:
>; I was of the understanding that drupals "logged sessions" and php
> "session cookies" were two different things. Drupal actually copies
> the session cookie into the database?
>
> Carl Mc Dade
> ____________________________
>; Web Developer
>
>
&gt;
>
>
> ----- Original Message ----
> From: Bčr Kessels webschuur.com>
> To: developmentdrupal.org
> Sent: Monday, February 19, 2007 10:06:30 AM
> Subject: Re: [development] Weird session behavior on submit block form
>
> Op maandag 19 februari 2007 09:28, schreef Carl Mc Dade:
> > Appropo dev stuff. Does the Drupal installer check the session
> directory?
> > Several other CMS installers like Joomla do this.
>
> AFAIK Drupal will always store a session in the database.
>
> Bčr
>
&gt;
> ------------------------------------------------------------------------
>; Everyone is raving about the all-new Yahoo! Mail beta.
>


--
* * * * *
Lullabot's First Ever Advanced Workshops Are Here!
Drupal API & Module Building - Advanced Drupal Themeing
April 9th-13th - Providence, RI
Early Bird Discounts Available Now
http://www.lullabot.com/training
* * * * *

webschuur.com>



Carl Mc Dade
____________________________
Web Developer


 


Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
Re: Weird session behavior on submit block form
country flaguser name
United States
2007-02-19 10:49:12
Robert Douglass wrote:
> 
> ; The path for which the cookie is valid.
> session.cookie_path = /

This is the URL path for the cookie in the domain. This is
really useful if you 
have several sites on the same domain. For example, if I
have 
http://www.example.com
/drupal1 if I set the session.cookie_path =
"/drupal1" 
then the cookie that site creates will only be valid at
/drupal1/* and children.


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )