secure_session 1.0.4 secure_session: ^1.0.4 copied to clipboard
Secure stateless cookie session for Dart. It is a simple and secure way to manage user sessions in web applications.
secure_session #
Secure stateless cookie session
Installation #
dart pub add secure_session
Usage #
import 'package:secure_session/secure_session.dart';
void main() {
final session = SecureSession(
options: SessionOptions(
secret: 'secret',
salt: 'salt',
cookieName: 'cookie',
)
);
final data = {'key': 'value'};
session.write(data, 'cookie');
final result = session.read('cookie');
print(result); // {key: value}
}