Account

Translate

Research

Last subscribed

Statistics

References - Chatbot - Chatbot sessions

The chatbot uses a txt file to store sessions. Each time the chatbot is used, a new text file with the IP and the date will be created. This file will store all the session of the user. Text session improve the chatbot performance because they allow the user to keep track of the session for longer time. If the user decide to delete his browser cache the text session won't be cleared. This means the captcha will be written 1 time. This also means it will remember the last word written. When owning a copy of the chatbot make sure to delete the session folder text file from time to time to avoid using too much space. Also make sure to give the correct permissions to the session directory. It will need the writing file permissions to allow the file creation. To save a session add this line of code:

write_session('session_name', 'session_value');

Replace the session_ string with the correct name and value. To retrieve the session later on, use this line of code:

use_session('session_name');

This method will return the session value if it exist or null if it doesn't find it. This means to use it with an IF condition

if(!use_session('session_name')){
	echo 'found the session !';
}

Working with session array is a little longer. The session value will have to be retrieve first, then add an array index and save the session

$old_values = use_session('session_name');
$accepted = array('other', 'nom', 'ver', 'adj');
foreach($accepted as $key => $value) {
	$old_values[$value] = array();
}
write_session('session_name', $old_values);


Source : learningbot

Price: $ 00.00 CAD to access learningbot extensions, forum support, chatbox support and update support



Chatbot sessions

The 2019-03-22 at 07:51:21

Author: learningbot Man

Rank: Administrator

Views total: 505

Comments total: 0

Likes: 0

Dislikes: 0

Votes: Autorized

Comments: Autorized

Article source: learningbot

Modified the 2020-03-31 at 20:06:09

+ Add to my contacts

Return to the articles list

Votes

Identity verification:

Enter (000) in this field:

0

0

Comments:

The news

The news section containing all the latest post from each section.

References

Title: Credits Policies

Category: Credits

Votes status: Authorized

Comments status: Authorized

Views total: 166

Comments total: 0

Votes results: 0 0

Article author: learningbot Man

Author rank: Administrator

Article date: 2022-07-13

Article time: 10:54:16

Article source: learningbot

View article...

Modified the 2022-07-13 at 23:08:20

Downloads

Title: Julie AI - The game

Category: Game

Votes status: Authorized

Comments status: Authorized

Views total: 844

Comments total: 0

Votes results: 0 0

Article author: learningbot Man

Author rank: Administrator

Article date: 2019-06-27

Article time: 01:28:01

Article source: learningbot

View article...

Modified the 2022-07-04 at 14:11:33

Forum

Title: Content Revision - Job offer

Category: Contribution

Votes status: Authorized

Comments status: Authorized

Views total: 304

Comments total: 0

Votes results: 0 0

Article author: learningbot Man

Author rank: Administrator

Article date: 2022-07-15

Article time: 08:10:28

Article source: learningbot

View article...

Help

Title: Example of conversation - Version 1.7.9

Category: Recorder

Votes status: Authorized

Comments status: Authorized

Views total: 953

Comments total: 0

Votes results: 0 0

Article author: learningbot Man

Author rank: Administrator

Article date: 2019-12-15

Article time: 11:32:02

Article source: learningbot

View article...

Modified the 2019-12-15 at 23:46:05

Languages

Title: French syntax pattern

Category: French

Votes status: Authorized

Comments status: Authorized

Views total: 723

Comments total: 0

Votes results: 0 0

Article author: learningbot Man

Author rank: Administrator

Article date: 2019-02-03

Article time: 11:31:07

Article source: learningbot

View article...

Modified the 2020-05-17 at 10:00:07