Cookiedata getting lost

b1gag3

Joined: 2011-05-06
Posts: 5
Posted: Fri, 2011-05-06 12:44

Hi there,

I'm using Gallery 3.0.1 without any modification and I got a cookie issue. On my local machine there's no problem but on the webserver gallerys userinterface is not accessable.

The login-process seemed to working fine. The user login-count increases as soon you hit the login-button. But after the login-form is closing nothing happens. I checked if there where any differences between my local and the webserver phpconfig. While checking the source code I recongnized that the new cookie data is not available at the index-page of gallery. But the new data is set at the cookie. The assigned functions resulting "true". Somehow the data gets lost while closing the login-form and "reload" the index-page.

If I quit the sourcecode after the login-procedure (after "auth::login($user);") the login works, but thats not the solution I'm looking for :)

The log (in the var-directory) tells nothing. Errorreporting is enabled and says nothing too :/

I searched the internet for this issue but I dont found anything useful. Maybe one of you got any idea...

 
b1gag3

Joined: 2011-05-06
Posts: 5
Posted: Tue, 2011-05-24 13:57

No Idea anyone?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2011-05-24 19:31

Do you have anything else running on your site that uses cookies?

Can you post a link to phpinfo?
FAQ: How do I create a phpinfo page?

____________________________________________
Like Gallery? Like the support? Donate now!

 
b1gag3

Joined: 2011-05-06
Posts: 5
Posted: Wed, 2011-05-25 06:54

I can't gain you access to the full configuration of this server sorry. But I attached an anonymized php_info file. Maybe this helps.

On this site is only the gallery page, nothing else.

AttachmentSize
php_info.zip8.95 KB
 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2011-05-25 12:05

ugh, good luck getting anything running in such a restrictive environment.

However, taking a look at your host's settings it like session info should be getting saved to /tmp but looking at the paths they have for open_basedir, I'm wondering if they are not allowing you to write to /tmp and expecting you to be using one of your open_basedir directories for the session.save_path setting:
/var/www/webxxx/html/:/var/www/webxxx/phptmp/:/var/www/webxxx/files/:/var/www/webxxx/atd/:/usr/share/php/

like /var/www/webxxx/phptmp

If that doesn't work, I'd ask your host since you're unwilling to post a link to your site so we can take a look....
____________________________________________
Like Gallery? Like the support? Donate now!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25968
Posted: Wed, 2011-05-25 23:01
Quote:
I can't gain you access to the full configuration of this server sorry.

We did not ask for that.

nivekiam wrote:
Do you have anything else running on your site that uses cookies?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
b1gag3

Joined: 2011-05-06
Posts: 5
Posted: Thu, 2011-05-26 06:42
nivekiam wrote:
ugh, good luck getting anything running in such a restrictive environment.

However, taking a look at your host's settings it like session info should be getting saved to /tmp but looking at the paths they have for open_basedir, I'm wondering if they are not allowing you to write to /tmp and expecting you to be using one of your open_basedir directories for the session.save_path setting:
/var/www/webxxx/html/:/var/www/webxxx/phptmp/:/var/www/webxxx/files/:/var/www/webxxx/atd/:/usr/share/php/

like /var/www/webxxx/phptmp

If that doesn't work, I'd ask your host since you're unwilling to post a link to your site so we can take a look....

I read your post again and again, but I don't get it :S Do you mean I should change the session.save_path to the ones you wrote? I can't change any path refering to the apache (like session path and so one).

I'm not unwilling to show you the page, but I don't want to share it public. And gallery is atm one of two pages that doesn't run without any troubles (the other one is Drupal 7). But I'm sure somehow we get the thing running ;)

floridave wrote:
nivekiam wrote:
Do you have anything else running on your site that uses cookies?

b1gag3 wrote:
On this site is only the gallery page, nothing else.

 
b1gag3

Joined: 2011-05-06
Posts: 5
Posted: Wed, 2012-04-18 12:25

I'm bumping this thread again. Now 3.0.3 is available, the problem is still there. Its still working only on my local machine. On server it only works one time with a fresh install. After the logout, there's no possibility to login again. After filling the blanks in the login form and submitting it, the page reloads and nothing happend. While searching this forum since the last post I made, I saw several people with the same problem, but there was no fix for it :/