2017-11-13 16:34:13 +01:00
|
|
|
package zall;
|
|
|
|
|
|
2018-07-26 16:23:01 +02:00
|
|
|
import java.util.Locale;
|
|
|
|
|
|
2017-11-13 16:34:13 +01:00
|
|
|
/**
|
|
|
|
|
* Zallery globally defined constants
|
|
|
|
|
*/
|
2018-08-06 18:53:40 +02:00
|
|
|
public interface ZalleryConstants {
|
2017-11-13 16:34:13 +01:00
|
|
|
|
|
|
|
|
/** Session Constants **/
|
|
|
|
|
|
2018-08-08 20:32:26 +02:00
|
|
|
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
|
2017-11-14 17:52:55 +01:00
|
|
|
|
|
|
|
|
/** Language Key Constants **/
|
|
|
|
|
|
2018-07-26 16:23:01 +02:00
|
|
|
String LANG_BASENAME = "zall.lang.zallery_lang";
|
2018-08-08 20:32:26 +02:00
|
|
|
Locale LANG_DEFAULT = Locale.ENGLISH;
|
2017-11-14 17:52:55 +01:00
|
|
|
|
2017-11-13 16:34:13 +01:00
|
|
|
}
|