News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Cookie or Login Problems

Started by [Unknown], May 28, 2004, 04:26:54 AM

Previous topic - Next topic

[Unknown]

Quote from: ROGUE-Master on June 09, 2004, 11:57:45 AM
Don't blame a flaw in SMF on my host. :P

If it works on any properly set up server, and only doesn't work with a badly configured server, how is that really a flaw in SMF?

-[Unknown]

James Bone

I must admit, i had mine set up as CGI, but have moved to ISAPI and its fine.

bananaman

Quote from: [Unknown] on June 09, 2004, 11:03:49 PM

If it works on any properly set up server, and only doesn't work with a badly configured server, how is that really a flaw in SMF?

-[Unknown]

I don't think my provider will be upgrading. Excuse my ignorance, but why is a server badly configured if it runs with CGI instead of ISAPI? It seems to be fine in every other respect.

Could someone please explain the difference in micky mouse language?
Visit my website Wolfenstein Resource for Wolfenstein and Enemy Territory Hints and Tips!

[Unknown]

It can be configured, correctly, using CGI and not have this problem.  While CGI is not as efficient, it has it's benefits and I'm not at all saying CGI is bad configuration.

-[Unknown]

bananaman

Thanks [Unknown]. Are there any specific configuration settings I can ask my CGI host to 'correct' that will resolve this problem? I don't know much about configuring PHP/Apache.
Visit my website Wolfenstein Resource for Wolfenstein and Enemy Territory Hints and Tips!

nave

#25
please tell me what i need to tell my host to fix this problem. i've got over 35 domains hosted there and i'm not about to move because of this small problem. i have several boards but it doesnt happen on all of them. some people are getting session errors and some are getting logged out.

http://brokeninside.com/phpinfo.php

test account for http://brokeninside.com/inside/ is "smftest" and pass is "1234"

ROGUE-Master

#26
nave the problem you are describing is the same problem for me. but when I tried your test account, it stayed logged in =P

Heres my host:
Quote from: netwirejohn on June 07, 2004, 04:07:47 PM
Here you go: http://www.netwire-solutions.com/phpinfo.php

Whats wrong Unknown :'( Has anyone found a solution for the next version of SMF

[Unknown]

Let me try again.  I've been very annoyed by this topic since about the 15th reply, because people are not listening or reading.

NUMBER ONE: This is fixed in the next version.

NUMBER TWO: It is fixed by allowing the option to use a meta redirect on login.

NUMBER THREE: This is only fixes SLOW LOGIN problems, or cookies that are plum not being set. (caused by BUGS in old Apache/IIS with CGI.)

NUMBER FOUR: If you have cookie or login problems THEY MAY NOT BE CAUSED BY THIS PROBLEM.

NUMBER FIVE: Often cookie problems are caused by two installations on the same domain having the same cookie name... or having an invalid cookie name, or other issues.

PLEASE NOTE: All of these things were said in post #1.

Maybe I'm just in a bad mood, but is that clear enough?

-[Unknown]

ROGUE-Master


mcdougrs

#29
I know this thread is buggin you [Unknown] but something wierd was happening to me the other day. For all I know my thing may be a totally seperate issue all together. Let me describe what I was doing.

I was playing around with my account, a dummy account and the templating system. I tried to add a new button to the menu for the default theme (after doing the copying of the default theme in the admin->Theme Settings area) but all I got after that was a bunch of blank pages. Thankfully the back button on my browser was taking me to some functional pages and I was able to get the "working" default theme going again. But somehow the site was working purely with sessions(???) because if I closed my browser and went back to my site I had to log on again. I also noticed that a sesc variable was being past and displayedin the url of certain areas of the admin area. But this morning when I went to my site I was already logged in ???

<edit>
Ok after just playing around with it a bit I have figured out something kind of odd. If I go to www.mapleave.net/forum and login then exit the browser, open a new browser and go to www.mapleave.net/forum ... wholla not logged in. HOWEVER, if you go to www.mapleave.net/forum/index.php and login, exit the browser, open a new one and go to www.mapleave.net/forum/index.php ... wholla you are logged in. Not sure if these are the same symptoms that other people have been having, but thought it might be helpful. ::) As I have never seen it put this way, I'm sure it has to do with how the server is setting it's cookies but I haven't seen it put this way.

If you would like to test it out at my site use username: helper password: helping
http://www.mapleave.net/phpinfo.php And the hosting company seems to be using php in CGI mode  :-[
</edit>

[Unknown]

Your problem is subdomain independent cookies is off.  See...

www.mapleave.net/forum redirects to mapleave.net/forum/
www.mapleave.net/forum/ goes straight to www.mapleave.net/forum/

Notice the missing www?  Your cookie isn't working without it - but it would if you turned on subdomain independent cookies and then logged out and back in.

-[Unknown]

mcdougrs

[Unknown] you are a genious!! Thank-you it worked like a charm!

Robster

Forgive my ignorance but where do i look on my PHPinfo to find out if I have php runnning in CGI mode or not?

http://www.soundsceneuk.com/phpinfo.php [nofollow]

(having problem with slow login)

Lithorien

Not to piss anyone off with this, but I run my own server, and I've been having the same problem (meta refresh vs php's built in refresh) and I was wondering if someone could take a look at my phpinfo and tell me why I'd be having these problems? I'm not trying to tread on Unknown's toes here, it's just for my own education as to what's causing the problem.

hxxp:lithorien.net:5001/phpinfo.php [nonactive]

Thank you in advance.


Lithorien

Quote from: [Unknown] on June 21, 2004, 08:20:58 PM
hxxp:unknown.network32.net/tutorial.basic-server [nonactive] - use ISAPI.

-[Unknown]

Keep getting:

"Server Application Error

The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance."

And in the log..

"The server failed to load application ''.  The error was 'The specified metadata was not found."

Failed to load application null. That's what I don't get. And yes, I followed your tutorial step by step. *sigh*

[Unknown]

Did you copy the dlls? (notably php4ts.dll...)

-[Unknown]

Lithorien

Quote from: [Unknown] on June 21, 2004, 08:51:30 PM
Did you copy the dlls? (notably php4ts.dll...)

-[Unknown]

Yeap. I tried them both (php4ts and php4isapi) in the sapi directory (Which caused me later on to have to quote the path because IIS didn't see "C:\Program Files\PHP\sapi\php4isapi.dll" as a valid path without quotes) and the system32 directory. Both give me the same error.

[Unknown]

Hmmm... well, it works in IIS 5.1+.... not sure.

-[Unknown]

Lithorien

Quote from: [Unknown] on June 21, 2004, 09:03:28 PM
Hmmm... well, it works in IIS 5.1+.... not sure.

-[Unknown]

Ok. Oddly enough, I worked a solution to let it run with the ISAPI module, and that works perfectly. (Thank you for getting me started - took some fiddling but eventually I got it to work.. don't even know what I did, heh.)

However.. the cookies still aren't staying. Global cookies on and off both tried, as are subdomain independant cookes on and off.

*sigh*

I think I'll just wait for the next version. Thanks for the ISAPI help though, Unknown! :)

Advertisement: