Forums / Setup & design / Redirect on Logout

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