Redirection after login

Author Message

Erik Weinmaster

Monday 14 February 2011 11:38:34 am

I am having trouble with the redirection after a user tries to login in the administration interface. What is happening is that when a user enters their credentials and clicks 'login' they are not taken to the first page in the system. Instead they are shown the login page again with no errors or warnings mind you. Thus if they try to login a 2nd time, everything works perfectly.
Unfortunately, when I enable the 'DebugRedirection' in site.ini, I can't reproduce the problem. I simply see the information presented as 'Redirecting to /' and then I click the redirect button and find myself at the first page in the system.

However, the problem not only exists for login, but logout as well. When a user tries to logout of the system, they are redirected to the page they tried to logout from. On the 2nd attempt to logout, the user can successfully logout. Once again, if I turn on 'DebugRedirection', I can't reproduce the problem.

Is there any other way to debug this problem?

Thanks,

erik

Gaetano Giunta

Monday 14 February 2011 9:21:01 pm

In one case I encountered a similar behavior and it was pretty hard to debug: a bad url in an image (/css/js) link that pointed to '/' means that the "last accessed uri" was being reset within the user's session. So whenevr users logged in, they were redirected to homepage instead of where they were supposed to. Thanks firebug for being able to find that out...

Principal Consultant International Business
Member of the Community Project Board

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 03:26:34
Script start
Timing: Jan 31 2025 03:26:34
Module start 'layout'
Timing: Jan 31 2025 03:26:34
Module start 'content'
Timing: Jan 31 2025 03:26:34
Module end 'content'
Timing: Jan 31 2025 03:26:34
Script end

Main resources:

Total runtime0.0273 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.1250151.2109
Module start 'layout' 0.00590.0044 739.3359220.6953
Module start 'content' 0.01030.0152 960.0313997.7891
Module end 'content' 0.02560.0017 1,957.820329.9766
Script end 0.0272  1,987.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00259.2501140.0002
Check MTime0.00113.9372140.0001
Mysql Total
Database connection0.00082.802010.0008
Mysqli_queries0.004014.489530.0013
Looping result0.00000.047210.0000
Template Total0.00124.510.0012
Template load0.00093.444810.0009
Template processing0.00031.031110.0003
Override
Cache load0.00062.333310.0006
General
dbfile0.004014.814880.0005
String conversion0.00000.028940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs