1
ccairns
Moving a site, keeps logging out
  • 2009/11/29 20:14

  • ccairns

  • Just popping in

  • Posts: 13

  • Since: 2008/10/16


Hi guys,

I've been playing around with a site on my own test server and it's been working fine, so I went ahead and uploaded it to my web hosting and now users won't stay logged in. You log in, it says 'Thank you for logging in' and redirects you back to the previous page, where the login box is there again. The only time it will briefly stay logged in is if you're on the main page, where you can see the user menu for one page before you click onto something else. It's the same for all users.

It may be related or might not be, but nothing seems to be being written to the cache folders (templates_c, cache etc) despite them being writable.

I'm beating my head against a wall with this one, anybody got any ideas? I've upgraded from 2.0.18 to 2.4.1 and it made no difference. Running on Apache with PHP 5.2.11 and MySQL 5.0.85.

2
trabis
Re: Moving a site, keeps logging out
  • 2009/11/29 20:33

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


My first step would be to go to phpMyAdmin and repair _session table.

3
ccairns
Re: Moving a site, keeps logging out
  • 2009/11/29 21:10

  • ccairns

  • Just popping in

  • Posts: 13

  • Since: 2008/10/16


Nope, didn't work I'm afraid, same thing - login seems fine but logs out as soon as you leave the home page.

4
trabis
Re: Moving a site, keeps logging out
  • 2009/11/29 21:59

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Make sure xoops_data and sub folders have write permissions.

5
ccairns
Re: Moving a site, keeps logging out
  • 2009/11/29 22:04

  • ccairns

  • Just popping in

  • Posts: 13

  • Since: 2008/10/16


Yup, were already that way from the upgrade (which I'm amazed worked). Still not working. Cheers for trying to track this one down Trabis :)

6
trabis
Re: Moving a site, keeps logging out
  • 2009/11/29 22:16

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Go to system preferences and change:

Name for user cookies: xoops_user
Session name: xoops_session

to something else.

Maybe a cookie problem,
If the above does not work then delete your browser cookies.

7
ghia
Re: Moving a site, keeps logging out
  • 2009/11/29 22:23

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


It is not the with and without www in the URL case?
Do you have PHP 5?
Are special operations needed by the site to have sessions, eg creating files or directories (see hosters documentation)?

8
ccairns
Re: Moving a site, keeps logging out
  • 2009/11/29 22:24

  • ccairns

  • Just popping in

  • Posts: 13

  • Since: 2008/10/16


Nope, and had to change the names in PHPMyAdmin since I can't stay logged in long enough to change the preferences :) Browser cookies cleared also and still no joy. The mystery deepens...

9
trabis
Re: Moving a site, keeps logging out
  • 2009/11/29 22:34

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


So this is happening before the upgrade, just after you upload your changes correct?
What changes have you done?
Do you have any .htaccess in your root? If so, try to remove it.

10
ccairns
Re: Moving a site, keeps logging out
  • 2009/11/30 9:26

  • ccairns

  • Just popping in

  • Posts: 13

  • Since: 2008/10/16


No changes other than uploading it to a new server/domain, editing mainfile.php to reflect new database and paths and sifting through the files/database to find any references to my old domain. I upgraded to see if it would make any difference to this problem.

I'd already renamed my .htaccess to .htaccess.old, even removing it completely doesn't seem to help. Still logging out. It does seem that I can look at anything on the user menu without it logging out though, if that helps your diagnosis at all.

Login

Who's Online

254 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 254


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits