Articles

…longer than a blog entry

This article is printer friendly.

Mint Cookie Tag

Comments (0) · 31 December 2006 · permalink

Post this to: del.icio.us · Twitter · email

Categories: Mint,

An extension for ExpressionEngine which sets a cookie storing the username when a member logs in. This cookie can be used by the Mint pepper Secret Crush to show the pages viewed by logged in users.

Download

Mint Cookie Tag (v1.0.1 for EE 1.x)

Installation

  1. Download the zip file above.
  2. Upload the file named “ext.mint_cookie_tag.php” to the /system/extensions/ folder.
  3. Upload the file named “lang.mint_cookie_tag.php” to the /system/language/english/ folder.
  4. In the ExpressionEngine Control Panel, go to Admin → Utilities → Extensions Manager, enable the extension and change the Cookie Name Suffix under Settings if necessary. The actual Cookie Name will be prefixed by “exp_”.
  5. In the Preferences for Mint, for the Nametags Pepper set Tag cookie name to the Cookie Name (with prefix “exp_”) used in Step 4 (see also image below).

Nametags Pepper Preferences

Settings

In the ExpressionEngine Extensions Manager, the only setting for this extension is the Cookie Name Suffix. The default suffix is “mint_nametag”.

The actual cookie that will be create will have the added prefix “exp_”.

The Cookie Name is also entered into the Mint Preferences for the Nametags Pepper in the field “Tag cookie name”. If using the default suffix, you would enter “exp_mint_nametag”.

See Also

EE Forum Thread

History

  • v1.0.1 Changed to use the extension hook “sessions_end”. This means that each time ExpressionEngine updates the member’s session cookies, the cookie created by this extension will also be created or updated. Meaning it will expire the same time as EE created cookies and member’s already logged in before this extension was activitated will get the additional cookie.
  • v1.0.0 Used the extension hook “member_member_login_start”. This meant that a user already logged in before the extension was activated, would not get the nametags cookie – and would not get the cookie till they actually logged in again. In addition, the cookie created by this extension would expire before the cookie which keeps the member logged in.
 

Menu

About

A personal blog by Simon Job.

From MathsClass

My blog about maths teaching.

MathsClass This Week #2

Nothing to do with MathsClass, this week saw the addition of Emma to our family. Four maths teachers kindly shared their work on MathsFaculty for others to use.
read more…

Subscribe

by RSS or Email

Follow

on Twitter

 

© 2005-2012 Simon Job · Use and recommend: ExpressionEngine, DreamHost
The posts and comments I make on this blog are made in a private capacity and do not represent the official view of my employer.