print

IP based configuration

You are here: C97net5.10 User Preferences

IP based configuration

This feature stores user values based on his/her IP address. This is an alternative to store user's values instead of cookies, because everything stored in database, so user doesn't need to enable cookies and can store a big value.

Before using this feature, you may need to alter your "ip_config" table structure:

  1. Use your MySQL manager, eg, phpMyAdmin or Adminer.
  2. Open 'ip_config' table, eg 'qe_ip_config' table.
  3. Alter the structure, add a new field, eg 'myfield'.

Stored values will be kept for 2 hours, if the same IP address & user ID doesn't access the site in 2 hours, store values will be removed.

function ip_config_update ($what = '', $value = '')

Update the ip_config stored value.

$what = the field name.

$value = the value.

function ip_config_value ($what)

To get the ip_config stored value.

$what = the field name.

function ip_config_count ()

To count number of stored values.

 

Posted on: Aug-26-2010 at 07:00am
Last Updated: Jan-01-1970 at 07:00am

There is no comment. Why not be the first?

read more More Comments/Post Your Own

Account

Search

Tags

acp add all also any create default display don download easy echo etc features field file files folder form function includes information init kemana link list may module name need number own page php please qengine read require script set site skin time tpl url use user using version welcome