Forums / Setup & design / Redirect to last siteaccess visit?

Redirect to last siteaccess visit?

Author Message

Mohammad Tufail

Wednesday 10 September 2008 11:04:20 pm

Hi,

I want to redirect the user to the site access last accessed by him.
e.g : I have a website that have multiple site accesses, when a user visit the website then he select a site access of his choice. After this whenever that user will visit the website again he should be redirected to that site access. Also all this is to be done with the use of cookies.

Regards,

Yannick Komotir

Thursday 18 September 2008 12:46:33 am

As you suggest you can easily create a cookie variable which will contains a value for the siteacess, when the visitor access you can so redirect with RedirectOperators extension.

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

Guido Ehlert

Tuesday 18 November 2008 4:28:34 am

I'm also interested in this topic. But how do I "easily create a cookie variable" in ez Publish?

Thank you for any hint!

Maxime Thomas

Tuesday 18 November 2008 11:43:20 pm

You can do it like this :
http://www.quirksmode.org/js/cookies.html

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Guido Ehlert

Monday 24 November 2008 11:41:47 pm

I finally found the SimpleCookies extension: http://ez.no/developer/contribs/template_plugins/simplecookies

Sometimes it is so simple. ;-)

Regards,
Guido