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

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 19:21:24
Script start
Timing: Jan 18 2025 19:21:24
Module start 'layout'
Timing: Jan 18 2025 19:21:24
Module start 'content'
Timing: Jan 18 2025 19:21:24
Module end 'content'
Timing: Jan 18 2025 19:21:24
Script end

Main resources:

Total runtime0.0179 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 587.9375152.6250
Module start 'layout' 0.00570.0046 740.562539.4453
Module start 'content' 0.01040.0052 780.007893.3359
Module end 'content' 0.01560.0023 873.343834.3047
Script end 0.0179  907.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003418.9816140.0002
Check MTime0.00126.5839140.0001
Mysql Total
Database connection0.00137.028910.0013
Mysqli_queries0.003117.143230.0010
Looping result0.00000.083910.0000
Template Total0.00179.710.0017
Template load0.00084.648210.0008
Template processing0.00095.006510.0009
Override
Cache load0.00063.419810.0006
General
dbfile0.00116.077680.0001
String conversion0.00000.052040.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