1
res1417
logging in does not log me in!
  • 2007/4/16 14:12

  • res1417

  • Just popping in

  • Posts: 7

  • Since: 2007/4/13


Hi. I just made my first XOOPS page. I made it on my mac and did all sorts of testing and everything seemed to be great. Then I tested on a pc and every time I logged in, it said "thanks for logging in!" but the next page it loaded made it clear I was not logged in. It said I was an anon. user. I tried loggin in several times as several different users. Each time it was the same. It thanked me for logging in but I was not logged in!
Help Me!

2
MadFish
Re: logging in does not log me in!
  • 2007/4/16 14:19

  • MadFish

  • Friend of XOOPS

  • Posts: 1056

  • Since: 2003/9/27


Try clearing your cookies. I had the same problem.

3
rlankford
Re: logging in does not log me in!
  • 2007/4/16 16:44

  • rlankford

  • Not too shy to talk

  • Posts: 158

  • Since: 2004/8/27


I've noticed the same problem from time to time lately. I have no idea what might be wrong though...just sharing the pain.

4
Tobias
Re: logging in does not log me in!
  • 2007/4/17 1:30

  • Tobias

  • Not too shy to talk

  • Posts: 172

  • Since: 2005/9/13


Is the site on a Mac or Pc, or are you trying to log into it from different machines?

Site doesn't keep you logged in typically happens if you have some firewall or privacy protection on your pc that strips "private headers" from your http requests. Try taking down your firewall for a second if you have one, or whatevery might be in the privacy protection business, and allow all headers and cookies if you're restricting them in your browser. Try a different browser, such as Firefox or Opera, if you're unsure about how to relax the privacy policies of the browser you're using.

In any case, if I understand you right and the site works ok if you look at it from a Mac, but not when you look at it from your PC, then your site is ok, and your PC is a little restrictive in the way it interacts with your site. Clearing browser cache and cookies is also always a good idea. Clearing the xoopsroot/cache and xoopsroot/templates_c folders on the server also sometimes works, but make sure you don't delete the index.html files in both folders (to prevent potential intruders from listing the contents of those folders).

If I didn't undersand you right and you have migrated the site itself from a Mac to a PC, then there's something wrong with the migration, or with the setup of your server on your PC. But that's a somewhat complex matter anyway.

5
res1417
Re: logging in does not log me in!
  • 2007/4/17 11:39

  • res1417

  • Just popping in

  • Posts: 7

  • Since: 2007/4/13


How do I clear my cookies?

6
res1417
Re: logging in does not log me in!
  • 2007/4/17 11:41

  • res1417

  • Just popping in

  • Posts: 7

  • Since: 2007/4/13


No, you did understand me right. Thanks to all for the suggestions, I will spend some time today trying your suggestions.

7
res1417
Re: logging in does not log me in!
  • 2007/4/17 14:05

  • res1417

  • Just popping in

  • Posts: 7

  • Since: 2007/4/13


So I tried all of your ideas. Still can't get it to work is Explorer, It is working fine in Mozilla.

I wonder if anyone knows a way to sense if the user has just tried to log on and their security settings prevented it, and how to inform them of this?

8
Tobias
Re: logging in does not log me in!
  • 2007/4/18 2:37

  • Tobias

  • Not too shy to talk

  • Posts: 172

  • Since: 2005/9/13


I've fallen in love with Ubuntu Feisty and haven't looked back into my Windows partition for a couple of weeks now. So, I can't give you step by step instructions on how to do things in IE, and it also depends on the version. In general, I don't think there should be more of a problem with XOOPS based sites than with other sites that require a login. If you have your IE security levels scaled to be able tp log on to all the other sites you log on to, the XOOPS site should normally also be operable. But then, they've taken so much blame for lax security that now, IE displays more security warnings than actual content it seems. Particularly entertaining I found the ones that come up when you go for the first time to the Windows update site and get asked whether you find Microsoft trustworthy.

I think you can always add your XOOPS site to the list of "trusted sites" in IE. That should do away with all the cookie and referer in http-header related problems. Search for "IE trusted sites" or something like that on the web if you need instructions on how to do that.

Clearing cookies: Normally, and if everything's configured correctly, that shouldn't be an issue. XOOPS session cookies expire (are automatically deleted) if you close your browser. But there might be a problem if, for some reason, there's some residual cookie left that doesn't belong. How to delete them? I think it's on page 1 of the IE settings, possibly depending on the version you're using. Next to "offline files" and what know I. You should be able to find instructions on the web.

How to tell users they're caught in a problem because of restrictive privacy settings? That might be tricky because, of course, the XOOPS security traps snap for a reason and to prevent potential abuse. So if it doesn't keep you logged on, that's actually on purpose, if sometimes not particularly helpful. Also, there can be a lot of different layers causing the issue. Firewall, browser,...

I think there's an error message that comes with those situations, something like "No valid session," or perhaps even "You don't have permission to blahblah." You might write it down (the error message you're getting, I mean), then search for the phrase in your XOOPS language files. You can use tools such as PSPad to search for a phrase in the files within an entire folder structure. Once you have found the place where the phrase is defined, you might want to amend it with something like "If you have looged in and see this message, please try relaxing your privacy settings or contact the administrator." Something like that.

If you tamper with language files, make sure you don't insert quotes anywhere, and no apostrophes if you don't know how (most of the time, html entities work). They are likely to break the language file. Also, be careful with diacritics, they might also throw errors or generate weird signs. Make a backup of the language file first, change the phrase you want to have changed, then try it out. In Xoops, you don't normally have to update any modules or anything for your changes in the language files (typically admin.php, main.php, modinfo.php, etc. in /language/yourlanguage in the xoops-root and each individual module's directory) to reflect. If you screw it up, you can use your back up copy to quickly get back to normal operations.

Phew, that's long. I hope it's not more confusing than helpful. This problem is also discussed a couple of times on the forums.

9
res1417
Re: logging in does not log me in!
  • 2007/4/18 16:01

  • res1417

  • Just popping in

  • Posts: 7

  • Since: 2007/4/13


Thank you so much for all your very detailed information! Very helpful.

Login

Who's Online

412 user(s) are online (61 user(s) are browsing Support Forums)


Members: 0


Guests: 412


more...

Donat-O-Meter

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

Latest GitHub Commits