11
Vizon
Re:Login Twice/Session Problem
  • 2004/10/31 4:45

  • Vizon

  • Just popping in

  • Posts: 10

  • Since: 2004/8/18


Well, just make sure your mainfile.php is directing you to the correct address that your users come to visit your site with. If you have them enter http://www.yoursite.com, then make sure the mainfile says http://www.yoursite.com, and not http://yoursite.com (and vise-versa). This seems to have repaired my issue, although those who still come to my site without adding the www (in my case) still get the double-login screen.

12
tjnemez
Re: Login Twice/Session Problem
  • 2004/10/31 8:29

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


yes, following an upgrade to 2.0.9 i am experiencing the same problem on my test site.

edit: seems to be working now

13
Bender
Re:Login Twice/Session Problem
  • 2004/10/31 10:59

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


Quote:

Vizon wrote:
My Cpanel seems to be lacking the ability to redirect the own domain name to itself + the www. Just curious if there's some code that I can throw in the mainfile.php that would check for both domains and make them both work?

Quote:

m0nty wrote:
you could probably setup a redirect in your server Cpanel etc.. under domain settings..

set yourdomain.com to redirect to http://www.yourdomain.com

that's 1 way of doing it..


If that system runs on apache use a .htaccess file for the redirect. (however this only works if permitted by your providers apache settings)

Create a file .htaccess with just one line in it and upload it to your sites root directory.
Quote:
Redirect http://yoursite.com/ http://www.yoursite.com/


If i remember correctly this should do the trick. If not google for htaccess and redirect.

14
tjnemez
Re:Login Twice/Session Problem
  • 2004/10/31 22:26

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


ok now its not working, i still have to, initially, login twice. then it is ok. now the only thing i did since this issue came up is to upgrade to 2.0.9

edit: my login is confirmed, but when i click on administration menu, i am logged out because i do not have permission. then i login again and all is well.

15
tl
Re:Login Twice/Session Problem
  • 2004/11/1 2:02

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


tjnemez:

As Herko explained, XOOPS sees yoursite without and yoursite with www as two different things. You will have the problem logiging twice.

Your signature and links are URLs with www, and you may want to change your mainfile to include www. Or change your external links to without www. If people coming to your site via those links, they will have problems logging into the site.

Also by doing so, you will also help Goole crawl your sites. Just like Xoops, Google will have problems "seeing" contents under the URL without www if your all of external links are with www.

tl

16
tjnemez
Re:Login Twice/Session Problem
  • 2004/11/1 2:23

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


hey tl,

thanks for reply. my mainfile does reflect www. and i believe i had the issue with or without www

17
tl
Re:Login Twice/Session Problem
  • 2004/11/1 2:31

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


tjnemez:
If I were to go to http://www.mindhealth.ca, I would see
user login as
http://www.mindhealth.ca/user.php
but all your contents are under
http://mindhealth.ca/modules/...
It tells me you have set your url to the one without www (if the menu is generated by XOOPS not a custom menu). I will have problems logging into the site, especially if I am the admin.
This happens to me on one of sites too.
tl

18
tjnemez
Re:Login Twice/Session Problem
  • 2004/11/1 2:55

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


thanks tl, i will go through and check all my links. by the way, i have not had time to help out with editing, but i hope soon. sometimes its no fun to have a real job.

19
Vizon
Re:Login Twice/Session Problem
  • 2004/11/2 3:37

  • Vizon

  • Just popping in

  • Posts: 10

  • Since: 2004/8/18


Thanks, seemed like that did the trick for the non-www link.

Quote:

Bender wrote:

If that system runs on apache use a .htaccess file for the redirect. (however this only works if permitted by your providers apache settings)

Create a file .htaccess with just one line in it and upload it to your sites root directory.
Quote:
Redirect http://yoursite.com/ http://www.yoursite.com/


If i remember correctly this should do the trick. If not google for htaccess and redirect.

Login

Who's Online

357 user(s) are online (322 user(s) are browsing Support Forums)


Members: 0


Guests: 357


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