i keep getting logged out

Found a bug? Tell us!!
mugs
Regular
Posts: 48
Joined: Wed Sep 27, 2006 2:16 pm

i keep getting logged out

Post by mugs »

i keep getting logged out once i login and when i click a link, it keeps sending me back to the login page, why is that
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: i keep getting logged out

Post by garvinhicking »

Hi!

Either your browser is not supporting cookies, or your server is not supporting PHP sessions, or you are not using the domain to enter your blog that you entered in the s9y configuration page.

So, check your browser first, then check the URL you use, and if all is okay, create a test.php script with this content:

Code: Select all

<?php phpinfo(); ?>
and give me the URL to that script.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
mugs
Regular
Posts: 48
Joined: Wed Sep 27, 2006 2:16 pm

Post by mugs »

i just switched servers yesterday and this has been happening since then

http://www.mugsinc.com/test.php

this is the link to the php info
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Did you check your browsers cookies and the configured URLs first?

Your PHP confugration for the value "session.save_path" looks odd. It points to ".\" which does not seem right. Can you please ask your provider if he can point that varaible to a proper directory like "/tmp"?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
mugs
Regular
Posts: 48
Joined: Wed Sep 27, 2006 2:16 pm

Post by mugs »

is that the reason i am getting logged out
mugs
Regular
Posts: 48
Joined: Wed Sep 27, 2006 2:16 pm

Post by mugs »

i made a change to the following "extension_dir = ./" could this be a reason
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

No, extension_dir is completely unrelated.

A wrong session-path leads to your session getting not saved, and thus once you login and go to a next page, no data can tell you were already logged in. This is related to the server though, not serendipity.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
mugs
Regular
Posts: 48
Joined: Wed Sep 27, 2006 2:16 pm

Post by mugs »

can i make the changes in the php.ini file
mugs
Regular
Posts: 48
Joined: Wed Sep 27, 2006 2:16 pm

Post by mugs »

now the admin page is not loading
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

If you have full access to php.ini, yes you can change that. You also need to restart your Webserver after changing the file.
mugs wrote:now the admin page is not loading
What happens? What did you change? Maybe you broke a file or made invalid settings in php.ini. Check the error logfiles of both webserver and PHP in that case.

Best regards,
GArvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
mugs
Regular
Posts: 48
Joined: Wed Sep 27, 2006 2:16 pm

Post by mugs »

actually the .com/?/admin link is not working anymore
mugs
Regular
Posts: 48
Joined: Wed Sep 27, 2006 2:16 pm

Post by mugs »

i have access to the php.ini file which is in my folder, and i am on a shared hosting, so i don't think i can restart the machine
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Again: What happens when you go to admin? What did you change?
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
mugs
Regular
Posts: 48
Joined: Wed Sep 27, 2006 2:16 pm

Post by mugs »

should i change "session.save_path = .\ "option to "session.save_path = /tmp"
mugs
Regular
Posts: 48
Joined: Wed Sep 27, 2006 2:16 pm

Post by mugs »

ok, i made the change and now it works, except that the /?/admin link does not work anymore
Post Reply