News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Cannot stay logged in - cookies (local mode?)

Started by NoRad, August 29, 2004, 03:07:27 AM

Previous topic - Next topic

NoRad

After reading this post:
http://support.simplemachines.org/community/index.php?topic=9211.0

I had a few similar questions...

The only way I can keep users logged in to my forum is to use local mode. My forum address is

http://www.thesilents.org/forum

I really want to avoid using local cookies if possible. Any other options i can check to see why it would not let me stay logged in? Something to note - I'm also trying to setup coppermine in a subfolder of the root called "gallery". It's using the SMF bridge (but not working). I'm not the only user experiencing the cookie problem and I use Firefox. Thanks.

[Unknown]

Quote from: Radianation on August 29, 2004, 03:07:27 AM
I'm not the only user experiencing the cookie problem and I use Firefox. Thanks.

I don't suppose by chance you tried clearing out any cookies for that domain and related, did you?

What cookie problems, specifically, did you have?

-[Unknown]

NoRad

Yes, I deleted all cookies associated with thesilents.org

I would login - then close firefox. go back to the site and it would make me login again even though I checked remain logged in. I tested various time settings (60 mins, 30 mins) and nothing seemed to change the fact that each time I visited the site I had to login again. I tried logging out and then closing, visiting the site and logging in and closing, and then visiting again and that did nothing either.

Only solution I have so far is using local mode. I'm just trying to avoid this because I would like to use SSI on my portal page, and I think it might be required for bridging with coppermine?

[Unknown]

Does this happen with a different browser, such as Internet Explorer or Safari?

-[Unknown]

NoRad

I believe so. Several of the users having the same problem are on IE. I'll test it myself in the morning.

whiterabbit

You may want to check in option (firefox or mozilla)
it has a cookie option -> Accept for current session only
which it is a good feature IMHO I always use it ;)
but it will clear all the cookies when you close your browser
One pill makes you larger, and one pill makes you small
And the ones that mother gives you, don't do anything at all

NoRad

Yeah I checked the cookie settings and mine is set to accept cookies normally.

NoRad

#7
Well, now I switched back to non-local mode and it seems to still be working (for now). However, I'm having difficulty integrating coppermine.

1. Does smf work with the referer URL?
2. It doesn't seem to be setting a cookie that coppermine can read.

Test account
login: testuser
password: test

www.thesilents.org/forum/
www.thesilents.org/gallery/

[Unknown]


NoRad


NoRad

I don't show the cookie as being set. I show 2 cookies for my domain. One of them is coppermine and the other one is the PHPSESSID cookie (and no cookie for the name I specified)?

[Unknown]

IIS has a bug in it that causes cookies not to be set when you use a Redirect header.  Can you try turning on the META refresh option?

-[Unknown]

NoRad

Looks like the META option worked. So, when I switch to Apache on BSD I won't have that problem anymore?

[Unknown]

Quote from: Radianation on August 29, 2004, 11:41:54 PM
Looks like the META option worked. So, when I switch to Apache on BSD I won't have that problem anymore?

Yep... although, you could switch to Apache on Windows too ;).

http://unknown.network32.net/tutorial.basic-server

-[Unknown]

NoRad

Hey, big problem with my IE users now when using META instead of HTTP. They are all getting this error when trying to login:

You will have to wait about 5 seconds to login again, sorry.

NoRad

Quote from: [Unknown] on August 30, 2004, 12:28:57 AM
Quote from: Radianation on August 29, 2004, 11:41:54 PM
Looks like the META option worked. So, when I switch to Apache on BSD I won't have that problem anymore?

Yep... although, you could switch to Apache on Windows too ;).

http://unknown.network32.net/tutorial.basic-server

-[Unknown]

Not until I'm done migrating all of my ASP stuff to PHP. I don't believe Apache will run ASP, even on Windows. Is that correct?

[Unknown]

Quote from: Radianation on August 30, 2004, 04:36:00 AM
Not until I'm done migrating all of my ASP stuff to PHP. I don't believe Apache will run ASP, even on Windows. Is that correct?

No, that's not, actually.

iASP: http://www.stryon.com/whatis.asp - $695
ChiliASP: http://wwws.sun.com/software/chilisoft/ (recently bought by ASP, not sure if it works with Apache anymore...)

So, they're both horribly expensive... but they do exist.

-[Unknown]

NoRad

I still think they are not full-featured ASP components. Perhaps a limited set? Either way, this is fine for the time being...

NoRad

Still having trouble with this. It's not setting the cookie if I don't use meta refresh, and meta refresh doesn't let IE users login at all.

NoRad

I'm testing it with IE also.

Here's what I've noticed. With Firefox, no cookie gets set other than the PHPSESSID. With IE the cookie gets set so hard that even when I click logout it doesn't let me logout. I have to manually delete the cookie and then logout. When the screen refreshes on the forum (in IE) I get an incomplete page load. It starts to load the forum just under the tree listing of the forum and then in the box where I would see all of my forum categories I only see the following: <td colspan="4" class="catbg

I have to refresh once or twice to get the full page load at this point. What the heck is going on?  :(


I've checked the stuff on this thread and my php.ini is setup with these options enabled/disabled as required.
http://www.simplemachines.org/community/index.php?topic=6765.0

Advertisement: