Unclassified NewsBoard Code Reference

UnbCreateSession function

Create a session. Called at login time

function UnbCreateSession ($UserID, $HashedPassword, $StoredPassword, $AutoReLogin = true);

Parameters:

UserID
(int) user id to log in
HashedPassword
(string) hash value of the password to check
StoredPassword
(string) stored hash value of the user password, this is the "correct answer"
AutoReLogin  –  optional, default: true
(bool) set cookies to auto-login the user on the next visit

Return value:

(bool) session created successfully, login error otherwise

Implementation file: unb_lib/session.lib.php, line 155

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.