Home arrow Forum Logs out when browser closes
  Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 12:46:45 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 1.0.x (Moderators: -Wolverine, kai920)
| | | |-+  Logs out when browser closes
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Logs out when browser closes  (Read 2732 times)
afonic
Joomla Pro
**

Karma: +8/-1
Offline Offline

Posts: 84



View Profile WWW
Logs out when browser closes
« on: November 03, 2005, 05:32:15 PM »

Hi there,

I have some trouble with my site (www.dvd-guides.com). When some user logins, then closes the browser (without logout) and opens the browser window and comes to the site again, he is logged out. That happens even if he selects "Remember me" or "Forever" (in SMF). I know its not a problem with the bridge as this site works. Something else I can add, is that the "time online" value appears to be stuck to some value.

I tried with both Mozilla and IE, in different PCs, with cleared cookies and cache in all cases.

I use Joomla 1.0.3, SMF 1.1 RC1 and the 1.0.2a bridge. I also use the custom login module.

Additional info, I use PHP 4.4.1 and I have changed the site's path once (one directory back, I have edited /admininstrator/com_smf/config.smf.php and all the other required files).

Any suggestions?
Logged

Editor (cowboy)
Administrator
Joomla Guru
*****

Karma: +86/-23
Offline Offline

Posts: 1144



View Profile WWW
Re: Logs out when browser closes
« Reply #1 on: November 03, 2005, 06:55:19 PM »

I just checked it.

If you look at the cookie info from Firefox cookie list, the cookie expiration is correct. So the user must always be logged in.

The only difference I see is the SMF cookie path, it's stored in "/forum". Try changing it to root.

Let me know what happen.
Logged
afonic
Joomla Pro
**

Karma: +8/-1
Offline Offline

Posts: 84



View Profile WWW
Re: Logs out when browser closes
« Reply #2 on: November 03, 2005, 07:12:37 PM »

Hi,

thanks for checking this out.

However I cannot find in which file this cookie setting is, can you guide me?
Logged

afonic
Joomla Pro
**

Karma: +8/-1
Offline Offline

Posts: 84



View Profile WWW
Re: Logs out when browser closes
« Reply #3 on: November 04, 2005, 08:40:55 AM »

Hi,

it was that the "Enable local storage of cookies" setting. After I disabled that, the cookie path is back to / and "Remember me" works.  Smiley

Well done, that bridge is excellent and the support you provide here is pro level! I did a small donation, its not much but I hope it will help with the development.
Logged

Editor (cowboy)
Administrator
Joomla Guru
*****

Karma: +86/-23
Offline Offline

Posts: 1144



View Profile WWW
Re: Logs out when browser closes
« Reply #4 on: November 04, 2005, 09:29:05 AM »

afonic,

Thanks for this tip. This is really helpful. I guess I need to compile these type of issues and solutions.

And thanks for the support. It just means that this component really helps.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login