Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 10-11-2012 06:11:18

Panmanjon
Member
From: Manchester UK
Registered: 08-18-2004
Posts: 337
Website

User gets logged out automatically

When I log in as a user and press the page refresh I immediately get logged out which is a bit annoying

At wwwwel.biz I have some categories set up for wholesale accounts only so when logging in I refresh the screen to see the categories previously suppressed come up

Try logging in as user: Joe@Bloggs.com pass: Bloggs and press the screen refresh you will see that you immediately get logged out - this happens both in chrome and firefox (not tried IE)

Is there anyway to stop this please?

Thanks

Offline

 

#2 10-11-2012 07:18:21

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1706

Re: User gets logged out automatically

I'm not getting logged out.

Are you sure you're not logging into the admin under a different username at the same time??

Do you get the same behaviour if you only have one window open??


Rob

Offline

 

#3 10-11-2012 07:21:19

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1706

Re: User gets logged out automatically

Have you got suppress SID set to true here:
Location: System Dashboard > System > Component > Settings > Search Engine Optimization Settings

If your browser is blocking cookies and this is set to true, you will be logged out everytime.


Rob

Offline

 

#4 10-11-2012 08:27:12

Panmanjon
Member
From: Manchester UK
Registered: 08-18-2004
Posts: 337
Website

Re: User gets logged out automatically

nope - it is set to false

no other users were logged in

did you do a screen refresh immediately after logging in? it still happens

Offline

 

#5 10-12-2012 08:33:19

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: User gets logged out automatically

Sometimes this will happen if you have two browsers open and using the store and backend at the same time.  Login status on one affects the other if you're using the same id with the same session id.


Nick Hendler

Offline

 

#6 10-14-2012 07:26:11

Panmanjon
Member
From: Manchester UK
Registered: 08-18-2004
Posts: 337
Website

Re: User gets logged out automatically

This seems to happen with only one browser open and no other users logged in Nick

Offline

 

#7 10-15-2012 07:42:23

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: User gets logged out automatically

Clear your cookies from your browser and access the system and login then move around the site.  Does the problem persist?  I'm thinking at this point you may have a conflict with a cookie in your browser due to possibly installing using one set of cookie settings and changing them later.  Not sure, but clear your cookies and try again to see if that helps.  Nobody else can replicate the issue.  So let's rule out a local cookie issue.


Nick Hendler

Offline

 

#8 10-15-2012 15:16:06

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 936

Re: User gets logged out automatically

I have my CCP8 backend session set to 6000 minutes and still get logged out after about 30 or so minutes. Not logged in elsewhere - this is consistent.

php.ini session.gc_maxlifetime is also set to days - or do you use only cookies? Well, those are set to days in CCP8.

Any other ideas other than clearing cookies?

Offline

 

#9 10-16-2012 05:54:05

Panmanjon
Member
From: Manchester UK
Registered: 08-18-2004
Posts: 337
Website

Re: User gets logged out automatically

Just tried that Nick - still same problem after clearing all browsing data in chrome and firefox

You are right - if I wander around the site after logging in I have no problems - its just that immediately after logging in I do a screen refresh and then immediately get logged out automatically!

Offline

 

#10 10-16-2012 07:38:39

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: User gets logged out automatically

Are you doing a refresh using F5 or Ctrl-R?  If so the cookie hasn't been "set" and being logged out is to be expected. If you navigate to any other page the cookie should "stick".

Offline

 

#11 10-16-2012 08:22:18

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: User gets logged out automatically

If you do a screen refresh on the login screen after processing it, it will refresh the login page which will automatically log you out.  Don't do a refresh on the resulting page after logging in.


Nick Hendler

Offline

 

#12 10-17-2012 09:25:15

Panmanjon
Member
From: Manchester UK
Registered: 08-18-2004
Posts: 337
Website

Re: User gets logged out automatically

OK I can understand this but the software should be consistent i.e.

If I have category assigned to a wholesaler - the wholesale only visible category disappears automatically when the wholesaler logs out

When the wholesaler logs in he must 'travel' around the site first for the wholesale only visible categories to appear

Offline

 

#13 10-18-2012 09:44:41

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: User gets logged out automatically

Under System > Component > Settings > Ajax Settings, set 'Enable Login Ajax Updates' to false.  You fall into the category of people who should do this based on the instructions for that setting:

"Select true to enable ajax updates for users when logging in. This setting is only valid when you choose to enable ajax updates for the account section. This setting should be disabled on sites where menus used in the display skin contain account-specific links."


Nick Hendler

Offline

 

#14 10-23-2012 05:49:47

Panmanjon
Member
From: Manchester UK
Registered: 08-18-2004
Posts: 337
Website

Re: User gets logged out automatically

tks Nick

Offline

 

#15 10-31-2012 10:24:10

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 936

Re: User gets logged out automatically

We keep getting logged out of the backend before the settings in CCP. We can be logged out in minutes, not hours as CCP is configured for Admin users.

Could working in the backend being logged in and then browsing the store with same browser, and possibly checking out as a guest or something else, be responsible for this premature backend logout problem?

Offline

 

#16 10-31-2012 12:24:32

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: User gets logged out automatically

Yes, that is the issue.  To prevent this, it's best to use a different browser when testing.  For example, use IE to test logging in/out on the store side while using FF to change settings, etc.  If you logout on the frontend, you will log yourself out of the backend as the session is the same for both (tied to the same user account).


Nick Hendler

Offline

 

Board footer