SN_PRELOAD

NAME

sn_preload - This function is executed before all others code.

SYNOPSIS

sn_logout ([login_table:string, cookie:string])

DESCRIPTION

This function can be use to abort a request before doing it.

The defintion for this function is in /usr/local/website/conf/project.conf where project is the project name

This function inialize a cookie for the user. The cookie is en encrypted value with project name, client ip and date

The reload function check if the extention if the request is a .sn or .snc file. If the request if for the staging website and the user is not login, the request is set to /extenso/html/fr/login.snc.

If the request if for html/extenso/extranet and the user is not login, the request is redirected to /extenso/html/fr/login.snc.

This function must be installed manually and the server must be restart to load the function in memory.

RETURNS

The function does not return any value but set those variables

user
Information about the user currently login with the cookie.
cookie
Information about the cookie
request
Information about the request
config
Information about the config

EXAMPLES




SEE ALSO

AUTHOR

Written by Pierre Laplante

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com