Fixed login stuff

This commit is contained in:
Ziver Koc 2018-08-08 20:32:26 +02:00
parent cbf6ef31f2
commit 87bd924e8d
7 changed files with 39 additions and 24 deletions

View file

@ -9,11 +9,19 @@ public interface ZalleryConstants {
/** Session Constants **/
public static final String KEY_USER_MSG = "zall_user_message";
public static final String SESSION_KEY_USER_MSG = "zall_user_message";
public static final String SESSION_KEY_USER = "zall_user";
public static final String SESSION_KEY_AUTH_HASH = "zall_user_session_hash";
public static final long SESSION_TIMEOUT = 3*24*60*60*1000; // 2 day
/** Cookie Constants **/
public static final String COOKIE_KEY_USER_HASH = "zall_user_hash";
public static final int COOKIE_TIMEOUT = 10*24*60*60; // 10 days
/** Language Key Constants **/
String LANG_BASENAME = "zall.lang.zallery_lang";
Locale LANG_DEFAULT = Locale.ENGLISH;
Locale LANG_DEFAULT = Locale.ENGLISH;
}