Redirect on Logout

Author Message

Barney Gumble

Saturday 07 February 2004 2:44:30 pm

A forum post for 2.2 suggested changing the line "LogoutRedirect=/user/login" in site.ini.append. However, in 3.3.2 this line doesn't appear to exist in this file.

How can I redirect a user to a public page when they logout?

Any help will be greatly appreciated as always!

Balazs Halasy

Saturday 07 February 2004 3:31:50 pm

I just downloaded the latest stable version; the following lines are present in site.ini:

# Which url to redirect after a logout
LogoutRedirect=/user/login

Simply change the line to something else. For example: LogoutRedirect=/home or /content/view/full/2 etc.

Balazs

PS: 2.x and 3.x series of eZp are totally different (!).

Barney Gumble

Tuesday 10 February 2004 1:21:23 am

Thanks Balazs, but I need to redirect on logout in 3.3.2. I have been able to redirect on LOGIN, using:

<input type="hidden" name="RedirectURI" value={"/home"|ezroot}>

... but I cannot redirect on logout using a similar method. Any further help will be greatly appreciated!

Balazs Halasy

Tuesday 10 February 2004 2:15:42 am

Hi again,

My previous post contains the solution to your problem. Use the mentioned ini-setting to do a custom redirection after logout. As far as I'm concerned, it is not possible to do a redirect in the same fashion as with the login. If the LogoutRedirect (or what is it called) setting is not present in the ini file(s) then you'll simply just have to add it yourself. That's it.

Balazs

Barney Gumble

Wednesday 11 February 2004 3:26:50 am

Hi Balazs, I'm afraid that's still not working. When I logout I am redirected to /user/login.

Which section of settings/siteaccess/site.ini.append should this line be added to?
I have already tried [SiteSettings] and [SiteAccessSettings] with no success.

Thanks for your continued help!

Kåre Køhler Høvik

Tuesday 27 April 2004 6:23:11 am

Hi

Works when adding

[UserSettings]
LogoutRedirect=/content/view/full/2

to settings/override/site.ini.append.php

--
Kåre Høvik

Kåre Høvik

Barney Gumble

Wednesday 02 June 2004 4:48:04 am

Many thanks. I'm now on my 3rd eZ site, so it's nice to have that working now.

William Steenbergh

Tuesday 10 January 2006 5:12:13 am

Would it be a suggestion to build in this feature of setting a redirect-location on logout in the templates?

When logging in, you can pass the $node.node_id, so one doesn't lose focus when logging in. I would like the same to ben possible for logging out.

Please correct me if this feature is already realised. (or if this is not the place for such a request)

Maurizio Betti

Wednesday 17 May 2006 8:50:35 am

Hi,

is it possible in some way to set a "RedirectURI" on logout (as posted by William Steenbergh)?

For my situation, setting a static logout url using RedirecURL in site.ini is not enought, 'cause I want to redirect user in different page depending from the context.

Thanks in advance for any help

Maurizio Betti
http://www.arsweb.it
http://www.hospes.it

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 18 2025 15:03:53
Script start
Timing: Jan 18 2025 15:03:53
Module start 'layout'
Timing: Jan 18 2025 15:03:53
Module start 'content'
Timing: Jan 18 2025 15:03:55
Module end 'content'
Timing: Jan 18 2025 15:03:55
Script end

Main resources:

Total runtime1.3403 sec
Peak memory usage4,096.0000 KB
Database Queries81

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 593.7109153.4375
Module start 'layout' 0.00720.0034 747.148439.3594
Module start 'content' 0.01071.3283 786.5078715.1172
Module end 'content' 1.33890.0013 1,501.625020.1875
Script end 1.3402  1,521.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2543160.0002
Check MTime0.00130.0985160.0001
Mysql Total
Database connection0.00090.065110.0009
Mysqli_queries1.267594.5733810.0156
Looping result0.00080.0584790.0000
Template Total1.309497.720.6547
Template load0.00220.161320.0011
Template processing1.307297.536520.6536
Template load and register function0.00010.010110.0001
states
state_id_array0.00070.050410.0007
state_identifier_array0.00130.093920.0006
Override
Cache load0.00190.1435470.0000
Sytem overhead
Fetch class attribute can translate value0.00060.048050.0001
Fetch class attribute name0.00090.0658120.0001
XML
Image XML parsing0.00170.128950.0003
class_abstraction
Instantiating content class attribute0.00000.0016130.0000
General
dbfile0.00100.0765270.0000
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 32
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs