sn_login - use to handle login for Extenso
sn_login ([user_table:string, login_table:string, sleeptime:integer, timeout:integer, expire:integer] username:string,password:string)
sn_login ([user_table:string, login_table:string, cookie:string, sleeptime:integer, timeout:integer, expire:integer])
sn_logout ([login_table:string, cookie:string])
In the first form this function is used to verify the login of a user. If the login is ok, table sn_users_login will be update with the cookie of the user use to verify the connection of the user using a cookie.
In the second form, this function is used to verify the connection of a user.
logout is used to logout the current user or the user specify by the cookie.
{{ %include "/extenso/functions/sn_login.snc"; }} \{{ sn_session_set("captcha",c[1], exp:"+300s"); sn_session_get("captcha"); sn_session_del("key1","key2"); }}
Written by Pierre Laplante
1.0 2014-09-09 21:24:14 laplante@sednove.com