Skip to content

config.js clean up #9

Description

@wintstar

ToDo

This must be removed as it overwrites the configuration of the config.php file. This also puts an end to a source of error that causes the use of Ajax Chat to fail.

// Once users have been logged in, the following values are overridden by those in config.php.
// You should set these to be the same as the ones in config.php to avoid confusion.
// Session identification, used for style and setting cookies:
sessionName: 'ajax_chat',
// The time in days until the style and setting cookies expire:
cookieExpiration: 365,
// The path of the cookies, '/' allows to read the cookies from all directories:
cookiePath: '/',
// The domain of the cookies, defaults to the hostname of the server if set to null:
cookieDomain: null,
// If enabled, cookies must be sent over secure (SSL/TLS encrypted) connections:
cookieSecure: false,
// SameSite prevents the browser from sending this cookie along with cross-site requests.
// The main goal is to mitigate the risk of cross-origin information leakage. It also provides
// some protection against cross- site request forgery attacks.Possible values for the flag are none, lax, or strict:
cookieSamesite: 'Lax',
// The name of the chat bot:
chatBotName: 'ChatBot',
// The userID of the chat bot:
chatBotID: 2147483647,
// Allow/Disallow registered users to delete their own messages:
allowUserMessageDelete: true,
// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
inactiveTimeout: 2,
// UserID plus this value are private channels (this is also the max userID and max channelID):
privateChannelDiff: 500000000,
// UserID plus this value are used for private messages:
privateMessageDiff: 1000000000,
// Defines if login/logout and channel enter/leave are displayed:
showChannelMessages: true,
// Max messageText length:
messageTextMaxLength: 1040,
// Debug allows console logging or alerts on caught errors - false/0 = no debug, true/1/2 = console log, 2 = alerts
debug: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions